diff options
author | Hung-ying Tyan <tyanh@google.com> | 2010-09-25 23:21:23 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2010-09-27 10:45:24 -0700 |
commit | 00a22064efef4f574e439079aae2deae1a087a31 (patch) | |
tree | 13083f04f2bccaf3475b7f959c9d2d17d9775734 /voip | |
parent | 4e9751f0770c8bfe6f7d57465cba754af5aa942b (diff) | |
download | frameworks_base-00a22064efef4f574e439079aae2deae1a087a31.zip frameworks_base-00a22064efef4f574e439079aae2deae1a087a31.tar.gz frameworks_base-00a22064efef4f574e439079aae2deae1a087a31.tar.bz2 |
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
Diffstat (limited to 'voip')
-rw-r--r-- | voip/java/android/net/sip/SipErrorCode.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/voip/java/android/net/sip/SipErrorCode.java b/voip/java/android/net/sip/SipErrorCode.java index 7496d28..eb7a1ae 100644 --- a/voip/java/android/net/sip/SipErrorCode.java +++ b/voip/java/android/net/sip/SipErrorCode.java @@ -58,6 +58,9 @@ public class SipErrorCode { /** When data connection is lost. */ public static final int DATA_CONNECTION_LOST = -10; + /** Cross-domain authentication required. */ + public static final int CROSS_DOMAIN_AUTHENTICATION = -11; + public static String toString(int errorCode) { switch (errorCode) { case NO_ERROR: @@ -82,6 +85,8 @@ public class SipErrorCode { return "IN_PROGRESS"; case DATA_CONNECTION_LOST: return "DATA_CONNECTION_LOST"; + case CROSS_DOMAIN_AUTHENTICATION: + return "CROSS_DOMAIN_AUTHENTICATION"; default: return "UNKNOWN"; } |