pull/47/merge
Liuzizai 2020-11-03 16:48:08 +08:00 committed by GitHub
commit 723725abd1
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); Matcher matcher = p.matcher(vh);
if (matcher.find()) { if (matcher.find()) {
byeURI.setHost(matcher.group(1)); byeURI.setHost(matcher.group(1));
byeURI.setPort(Integer.parseInt(matcher.group(2)));
} }
ViaHeader viaHeader = (ViaHeader) byeRequest.getHeader(ViaHeader.NAME); ViaHeader viaHeader = (ViaHeader) byeRequest.getHeader(ViaHeader.NAME);
String protocol = viaHeader.getTransport().toUpperCase(); String protocol = viaHeader.getTransport().toUpperCase();