From 18f8f2e6d26c224a5313abe0255dacc4ed520d56 Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: Fri, 25 Jun 2021 21:48:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8MonitorIp=E4=BB=A3=E6=9B=BFsi?= =?UTF-8?q?p.ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java b/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java index 9c3e230b..0dca4af6 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java @@ -92,7 +92,7 @@ public class SipLayer implements SipListener { ListeningPoint tcpListeningPoint = null; SipProvider tcpSipProvider = null; try { - tcpListeningPoint = sipStack.createListeningPoint(sipConfig.getSipIp(), sipConfig.getSipPort(), "TCP"); + tcpListeningPoint = sipStack.createListeningPoint(sipConfig.getMonitorIp(), sipConfig.getSipPort(), "TCP"); tcpSipProvider = sipStack.createSipProvider(tcpListeningPoint); tcpSipProvider.addSipListener(this); logger.info("Sip Server TCP 启动成功 port {" + sipConfig.getSipPort() + "}"); @@ -105,7 +105,7 @@ public class SipLayer implements SipListener { @Bean("udpSipProvider") @DependsOn("sipStack") private SipProvider startUdpListener() throws Exception { - ListeningPoint udpListeningPoint = sipStack.createListeningPoint(sipConfig.getSipIp(), sipConfig.getSipPort(), "UDP"); + ListeningPoint udpListeningPoint = sipStack.createListeningPoint(sipConfig.getMonitorIp(), sipConfig.getSipPort(), "UDP"); SipProvider udpSipProvider = sipStack.createSipProvider(udpListeningPoint); udpSipProvider.addSipListener(this); logger.info("Sip Server UDP 启动成功 port {" + sipConfig.getSipPort() + "}");