Update SIPCommander.java

外网环境下无法正常向摄像头发送buy指令
pull/47/head
Liuzizai 2020-11-03 16:45:15 +08:00 committed by GitHub
parent 956fd47ed6
commit f651885fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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();