Commit 18f8f2e6d26c224a5313abe0255dacc4ed520d56
1 parent
0802677d
使用MonitorIp代替sip.ip
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/SipLayer.java
| ... | ... | @@ -92,7 +92,7 @@ public class SipLayer implements SipListener { |
| 92 | 92 | ListeningPoint tcpListeningPoint = null; |
| 93 | 93 | SipProvider tcpSipProvider = null; |
| 94 | 94 | try { |
| 95 | - tcpListeningPoint = sipStack.createListeningPoint(sipConfig.getSipIp(), sipConfig.getSipPort(), "TCP"); | |
| 95 | + tcpListeningPoint = sipStack.createListeningPoint(sipConfig.getMonitorIp(), sipConfig.getSipPort(), "TCP"); | |
| 96 | 96 | tcpSipProvider = sipStack.createSipProvider(tcpListeningPoint); |
| 97 | 97 | tcpSipProvider.addSipListener(this); |
| 98 | 98 | logger.info("Sip Server TCP 启动成功 port {" + sipConfig.getSipPort() + "}"); |
| ... | ... | @@ -105,7 +105,7 @@ public class SipLayer implements SipListener { |
| 105 | 105 | @Bean("udpSipProvider") |
| 106 | 106 | @DependsOn("sipStack") |
| 107 | 107 | private SipProvider startUdpListener() throws Exception { |
| 108 | - ListeningPoint udpListeningPoint = sipStack.createListeningPoint(sipConfig.getSipIp(), sipConfig.getSipPort(), "UDP"); | |
| 108 | + ListeningPoint udpListeningPoint = sipStack.createListeningPoint(sipConfig.getMonitorIp(), sipConfig.getSipPort(), "UDP"); | |
| 109 | 109 | SipProvider udpSipProvider = sipStack.createSipProvider(udpListeningPoint); |
| 110 | 110 | udpSipProvider.addSipListener(this); |
| 111 | 111 | logger.info("Sip Server UDP 启动成功 port {" + sipConfig.getSipPort() + "}"); | ... | ... |