Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 635b2b77 authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Android Git Automerger
Browse files

am d90bc225: am a936b256: Remove SIP realm/domain check

* commit 'd90bc225':
  Remove SIP realm/domain check
parents 38212f6f d90bc225
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -871,9 +871,14 @@ class SipSessionGroup implements SipListener {
                            + mAuthenticationRetryCount);
                }
                return true;
            } else {
                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;