Commit 8b66abfbfc6c1da327d201223197faaf1e04a569
1 parent
b8e67deb
设备注册更新设备信息
Showing
1 changed file
with
3 additions
and
3 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/RegisterRequestProcessor.java
| ... | ... | @@ -144,10 +144,10 @@ public class RegisterRequestProcessor extends SIPRequestAbstractProcessor { |
| 144 | 144 | storager.updateDevice(device); |
| 145 | 145 | publisher.onlineEventPublish(device.getDeviceId(), VideoManagerConstants.EVENT_ONLINE_REGISTER); |
| 146 | 146 | |
| 147 | - // 只有第一次注册才更新通道 | |
| 148 | - if (!exists) { | |
| 147 | + // 重新注册更新设备和通道,以免设备替换或更新后信息无法更新 | |
| 148 | + //if (!exists) { | |
| 149 | 149 | handler.onRegister(device); |
| 150 | - } | |
| 150 | + //} | |
| 151 | 151 | } else if (registerFlag == 2) { |
| 152 | 152 | logger.info("注销成功! deviceId:" + device.getDeviceId()); |
| 153 | 153 | publisher.outlineEventPublish(device.getDeviceId(), VideoManagerConstants.EVENT_OUTLINE_UNREGISTER); | ... | ... |