修复默认新建设备未设置节点策略的BUG
This commit is contained in:
@@ -59,6 +59,7 @@ public interface DeviceMapper {
|
||||
"firmware, " +
|
||||
"transport," +
|
||||
"stream_mode," +
|
||||
"media_server_id," +
|
||||
"ip," +
|
||||
"sdp_ip," +
|
||||
"local_ip," +
|
||||
@@ -88,6 +89,7 @@ public interface DeviceMapper {
|
||||
"#{firmware}," +
|
||||
"#{transport}," +
|
||||
"#{streamMode}," +
|
||||
"#{mediaServerId}," +
|
||||
"#{ip}," +
|
||||
"#{sdpIp}," +
|
||||
"#{localIp}," +
|
||||
|
||||
@@ -168,15 +168,13 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
}
|
||||
|
||||
}else {
|
||||
if (deviceChannelMapper.queryChannelsByDeviceDbId(device.getId()).isEmpty()) {
|
||||
log.info("[设备上线]: {},通道数为0,查询通道信息", device.getDeviceId());
|
||||
sync(device);
|
||||
}
|
||||
|
||||
deviceMapper.update(device);
|
||||
redisCatchStorage.updateDevice(device);
|
||||
}
|
||||
|
||||
if (deviceChannelMapper.queryChannelsByDeviceDbId(device.getId()).isEmpty()) {
|
||||
log.info("[设备上线]: {},通道数为0,查询通道信息", device.getDeviceId());
|
||||
sync(device);
|
||||
}
|
||||
}
|
||||
|
||||
// 刷新过期任务
|
||||
|
||||
@@ -172,6 +172,7 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
|
||||
device.setStreamMode("UDP");
|
||||
device.setCharset("GB2312");
|
||||
device.setGeoCoordSys("WGS84");
|
||||
device.setMediaServerId("auto");
|
||||
device.setDeviceId(deviceId);
|
||||
device.setOnLine(false);
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user