Browse Source

设备注册时更新设备与通道信息

pull/33/head
Lawrence 4 years ago
parent
commit
6735b01775
  1. 6
      src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java

6
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java

@ -144,10 +144,10 @@ public class RegisterRequestProcessor extends SIPRequestAbstractProcessor {
storager.updateDevice(device);
publisher.onlineEventPublish(device.getDeviceId(), VideoManagerConstants.EVENT_ONLINE_REGISTER);
// 只有第一次注册才更新通道
if (!exists) {
// 重新注册更新设备和通道,以免设备替换或更新后信息无法更新
//if (!exists) {
handler.onRegister(device);
}
//}
} else if (registerFlag == 2) {
logger.info("注销成功! deviceId:" + device.getDeviceId());
publisher.outlineEventPublish(device.getDeviceId(), VideoManagerConstants.EVENT_OUTLINE_UNREGISTER);

Loading…
Cancel
Save