am a936b256
: Remove SIP realm/domain check
* commit 'a936b256eb1611b5d8b88d0cd61f21225152cc82': Remove SIP realm/domain check
This commit is contained in:
@ -871,9 +871,14 @@ class SipSessionGroup implements SipListener {
|
|||||||
+ mAuthenticationRetryCount);
|
+ mAuthenticationRetryCount);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
if (crossDomainAuthenticationRequired(response)) {
|
||||||
|
onError(SipErrorCode.CROSS_DOMAIN_AUTHENTICATION,
|
||||||
|
getRealmFromResponse(response));
|
||||||
} else {
|
} else {
|
||||||
onError(SipErrorCode.INVALID_CREDENTIALS,
|
onError(SipErrorCode.INVALID_CREDENTIALS,
|
||||||
"incorrect username or password");
|
"incorrect username or password");
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1025,10 +1030,7 @@ class SipSessionGroup implements SipListener {
|
|||||||
return true;
|
return true;
|
||||||
case Response.UNAUTHORIZED:
|
case Response.UNAUTHORIZED:
|
||||||
case Response.PROXY_AUTHENTICATION_REQUIRED:
|
case Response.PROXY_AUTHENTICATION_REQUIRED:
|
||||||
if (crossDomainAuthenticationRequired(response)) {
|
if (handleAuthentication(event)) {
|
||||||
onError(SipErrorCode.CROSS_DOMAIN_AUTHENTICATION,
|
|
||||||
getRealmFromResponse(response));
|
|
||||||
} else if (handleAuthentication(event)) {
|
|
||||||
addSipSession(this);
|
addSipSession(this);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user