SipService: handle cross-domain authentication error
and add new CROSS_DOMAIN_AUTHENTICATION error code and OUT_OF_NETWORK DisconnectCause. http://b/issue?id=3020185 Change-Id: Icc0a341599d5a72b7cb2d43675fbddc516544978
This commit is contained in:
@@ -41,6 +41,7 @@ public abstract class Connection {
|
||||
INVALID_NUMBER, /* invalid dial string */
|
||||
NUMBER_UNREACHABLE, /* cannot reach the peer */
|
||||
INVALID_CREDENTIALS, /* invalid credentials */
|
||||
OUT_OF_NETWORK, /* calling from out of network is not allowed */
|
||||
TIMED_OUT, /* client timed out */
|
||||
LOST_SIGNAL,
|
||||
LIMIT_EXCEEDED, /* eg GSM ACM limit exceeded */
|
||||
|
||||
@@ -870,6 +870,9 @@ public class SipPhone extends SipPhoneBase {
|
||||
case SipErrorCode.INVALID_CREDENTIALS:
|
||||
onError(Connection.DisconnectCause.INVALID_CREDENTIALS);
|
||||
break;
|
||||
case SipErrorCode.CROSS_DOMAIN_AUTHENTICATION:
|
||||
onError(Connection.DisconnectCause.OUT_OF_NETWORK);
|
||||
break;
|
||||
case SipErrorCode.SOCKET_ERROR:
|
||||
case SipErrorCode.SERVER_ERROR:
|
||||
case SipErrorCode.CLIENT_ERROR:
|
||||
|
||||
Reference in New Issue
Block a user