|
@ -68,9 +68,6 @@ public class SIPRequestHeaderPlarformProvider { |
|
|
toHeader, viaHeaders, maxForwards); |
|
|
toHeader, viaHeaders, maxForwards); |
|
|
|
|
|
|
|
|
List<String> agentParam = new ArrayList<>(); |
|
|
List<String> agentParam = new ArrayList<>(); |
|
|
agentParam.add("wvp-pro"); |
|
|
|
|
|
UserAgentHeader userAgentHeader = sipFactory.createHeaderFactory().createUserAgentHeader(agentParam); |
|
|
|
|
|
request.addHeader(userAgentHeader); |
|
|
|
|
|
|
|
|
|
|
|
ContentTypeHeader contentTypeHeader = sipFactory.createHeaderFactory().createContentTypeHeader("Application", "MANSCDP+xml"); |
|
|
ContentTypeHeader contentTypeHeader = sipFactory.createHeaderFactory().createContentTypeHeader("Application", "MANSCDP+xml"); |
|
|
request.setContent(content, contentTypeHeader); |
|
|
request.setContent(content, contentTypeHeader); |
|
@ -115,10 +112,6 @@ public class SIPRequestHeaderPlarformProvider { |
|
|
ExpiresHeader expires = sipFactory.createHeaderFactory().createExpiresHeader(Integer.parseInt(platform.getExpires())); |
|
|
ExpiresHeader expires = sipFactory.createHeaderFactory().createExpiresHeader(Integer.parseInt(platform.getExpires())); |
|
|
request.addHeader(expires); |
|
|
request.addHeader(expires); |
|
|
|
|
|
|
|
|
List<String> agentParam = new ArrayList<>(); |
|
|
|
|
|
agentParam.add("wvp-pro"); |
|
|
|
|
|
UserAgentHeader userAgentHeader = sipFactory.createHeaderFactory().createUserAgentHeader(agentParam); |
|
|
|
|
|
request.addHeader(userAgentHeader); |
|
|
|
|
|
|
|
|
|
|
|
return request; |
|
|
return request; |
|
|
} |
|
|
} |
|
@ -226,10 +219,6 @@ public class SIPRequestHeaderPlarformProvider { |
|
|
messageFactory.setDefaultContentEncodingCharset(parentPlatform.getCharacterSet()); |
|
|
messageFactory.setDefaultContentEncodingCharset(parentPlatform.getCharacterSet()); |
|
|
request = messageFactory.createRequest(requestURI, Request.MESSAGE, callIdHeader, cSeqHeader, fromHeader, |
|
|
request = messageFactory.createRequest(requestURI, Request.MESSAGE, callIdHeader, cSeqHeader, fromHeader, |
|
|
toHeader, viaHeaders, maxForwards); |
|
|
toHeader, viaHeaders, maxForwards); |
|
|
List<String> agentParam = new ArrayList<>(); |
|
|
|
|
|
agentParam.add("wvp-pro"); |
|
|
|
|
|
UserAgentHeader userAgentHeader = sipFactory.createHeaderFactory().createUserAgentHeader(agentParam); |
|
|
|
|
|
request.addHeader(userAgentHeader); |
|
|
|
|
|
|
|
|
|
|
|
ContentTypeHeader contentTypeHeader = sipFactory.createHeaderFactory().createContentTypeHeader("Application", "MANSCDP+xml"); |
|
|
ContentTypeHeader contentTypeHeader = sipFactory.createHeaderFactory().createContentTypeHeader("Application", "MANSCDP+xml"); |
|
|
request.setContent(content, contentTypeHeader); |
|
|
request.setContent(content, contentTypeHeader); |
|
|