修复多网卡监听点播失败的BUG
parent
189e56c839
commit
1671716480
|
@ -82,7 +82,7 @@ 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());
|
||||||
device.setLocalIp(request.getRemoteAddress().getHostAddress());
|
device.setLocalIp(request.getLocalAddress().getHostAddress());
|
||||||
// 设备地址变化会引起目录订阅任务失效,需要重新添加
|
// 设备地址变化会引起目录订阅任务失效,需要重新添加
|
||||||
if (device.getSubscribeCycleForCatalog() > 0) {
|
if (device.getSubscribeCycleForCatalog() > 0) {
|
||||||
deviceService.removeCatalogSubscribe(device, result->{
|
deviceService.removeCatalogSubscribe(device, result->{
|
||||||
|
|
Loading…
Reference in New Issue