Merge remote-tracking branch 'origin/wvp-28181-2.0' into wvp-28181-2.0
commit
e166cc366c
|
@ -94,7 +94,13 @@ public class SIPRequestHeaderPlarformProvider {
|
||||||
SipURI requestURI = sipLayer.getSipFactory().createAddressFactory().createSipURI(parentPlatform.getServerGBId(), parentPlatform.getServerIP() + ":" + parentPlatform.getServerPort());
|
SipURI requestURI = sipLayer.getSipFactory().createAddressFactory().createSipURI(parentPlatform.getServerGBId(), parentPlatform.getServerIP() + ":" + parentPlatform.getServerPort());
|
||||||
if (www == null) {
|
if (www == null) {
|
||||||
AuthorizationHeader authorizationHeader = sipLayer.getSipFactory().createHeaderFactory().createAuthorizationHeader("Digest");
|
AuthorizationHeader authorizationHeader = sipLayer.getSipFactory().createHeaderFactory().createAuthorizationHeader("Digest");
|
||||||
|
String username = parentPlatform.getUsername();
|
||||||
|
if ( username == null || username == "" )
|
||||||
|
{
|
||||||
authorizationHeader.setUsername(parentPlatform.getDeviceGBId());
|
authorizationHeader.setUsername(parentPlatform.getDeviceGBId());
|
||||||
|
} else {
|
||||||
|
authorizationHeader.setUsername(username);
|
||||||
|
}
|
||||||
authorizationHeader.setURI(requestURI);
|
authorizationHeader.setURI(requestURI);
|
||||||
authorizationHeader.setAlgorithm("MD5");
|
authorizationHeader.setAlgorithm("MD5");
|
||||||
registerRequest.addHeader(authorizationHeader);
|
registerRequest.addHeader(authorizationHeader);
|
||||||
|
|
Loading…
Reference in New Issue