Remove SIP realm/domain check
as the realm may be different from the domain. Bug: 3283834 Change-Id: I64c9f0d6d626afdb397c5d378d30afa9d6a64ca9
This commit is contained in:
@@ -872,8 +872,13 @@ class SipSessionGroup implements SipListener {
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
onError(SipErrorCode.INVALID_CREDENTIALS,
|
||||
"incorrect username or password");
|
||||
if (crossDomainAuthenticationRequired(response)) {
|
||||
onError(SipErrorCode.CROSS_DOMAIN_AUTHENTICATION,
|
||||
getRealmFromResponse(response));
|
||||
} else {
|
||||
onError(SipErrorCode.INVALID_CREDENTIALS,
|
||||
"incorrect username or password");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1025,10 +1030,7 @@ class SipSessionGroup implements SipListener {
|
||||
return true;
|
||||
case Response.UNAUTHORIZED:
|
||||
case Response.PROXY_AUTHENTICATION_REQUIRED:
|
||||
if (crossDomainAuthenticationRequired(response)) {
|
||||
onError(SipErrorCode.CROSS_DOMAIN_AUTHENTICATION,
|
||||
getRealmFromResponse(response));
|
||||
} else if (handleAuthentication(event)) {
|
||||
if (handleAuthentication(event)) {
|
||||
addSipSession(this);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user