尝试 添加其他 各种 子码流 参数
This commit is contained in:
parent
6ee9f00bcd
commit
0c0ee3e7d9
@ -354,6 +354,9 @@ public class SIPCommander implements ISIPCommander {
|
||||
}else {
|
||||
if (device.isSwitchPrimarySubStream()){
|
||||
content.append("a=streamprofile:1\r\n");
|
||||
content.append("a=stream:1\r\n");
|
||||
content.append("a=stream:SUB\r\n");
|
||||
content.append("a=streamnumber:1\r\n");
|
||||
}else {
|
||||
content.append("a=streamprofile:0\r\n");
|
||||
}
|
||||
|
@ -136,10 +136,7 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
}
|
||||
sync(device);
|
||||
}else {
|
||||
|
||||
if (deviceInDb != null) {
|
||||
device.setSwitchPrimarySubStream(deviceInDb.isSwitchPrimarySubStream());
|
||||
}
|
||||
device.setSwitchPrimarySubStream(deviceInDb.isSwitchPrimarySubStream());
|
||||
if(!device.isOnLine()){
|
||||
device.setOnLine(true);
|
||||
device.setCreateTime(now);
|
||||
@ -156,7 +153,7 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
// TODO 如果设备下的通道级联到了其他平台,那么需要发送事件或者notify给上级平台
|
||||
}
|
||||
}else {
|
||||
if (deviceChannelMapper.queryAllChannels(device.getDeviceId()).size() == 0) {
|
||||
if (deviceChannelMapper.queryAllChannels(device.getDeviceId()).isEmpty()) {
|
||||
logger.info("[设备上线]: {},通道数为0,查询通道信息", device.getDeviceId());
|
||||
sync(device);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user