bugfix:设备地址变化会引起目录订阅任务失效,需要重新添加
parent
f4f3e60a6b
commit
5cd2e2c41b
|
@ -80,6 +80,11 @@ public class KeepaliveNotifyMessageHandler extends SIPRequestProcessorParent imp
|
||||||
device.setPort(remoteAddressInfo.getPort());
|
device.setPort(remoteAddressInfo.getPort());
|
||||||
device.setHostAddress(remoteAddressInfo.getIp().concat(":").concat(String.valueOf(remoteAddressInfo.getPort())));
|
device.setHostAddress(remoteAddressInfo.getIp().concat(":").concat(String.valueOf(remoteAddressInfo.getPort())));
|
||||||
device.setIp(remoteAddressInfo.getIp());
|
device.setIp(remoteAddressInfo.getIp());
|
||||||
|
// 设备地址变化会引起目录订阅任务失效,需要重新添加
|
||||||
|
if (device.getSubscribeCycleForCatalog() > 0) {
|
||||||
|
deviceService.removeCatalogSubscribe(device);
|
||||||
|
deviceService.addCatalogSubscribe(device);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (device.getKeepaliveTime() == null) {
|
if (device.getKeepaliveTime() == null) {
|
||||||
device.setKeepaliveIntervalTime(60);
|
device.setKeepaliveIntervalTime(60);
|
||||||
|
|
Loading…
Reference in New Issue