From f651885fb2870f89a3a80d7ede7d72ba72ffc681 Mon Sep 17 00:00:00 2001 From: Liuzizai <47135335+Liuzizai@users.noreply.github.com> Date: Tue, 3 Nov 2020 16:45:15 +0800 Subject: [PATCH] Update SIPCommander.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 外网环境下无法正常向摄像头发送buy指令 --- .../iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java index aaf347d..415c1df 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java @@ -304,6 +304,7 @@ public class SIPCommander implements ISIPCommander { Matcher matcher = p.matcher(vh); if (matcher.find()) { byeURI.setHost(matcher.group(1)); + byeURI.setPort(Integer.parseInt(matcher.group(2))); } ViaHeader viaHeader = (ViaHeader) byeRequest.getHeader(ViaHeader.NAME); String protocol = viaHeader.getTransport().toUpperCase();