am 624d5b4e: SIP: add DisconnectCause.SERVER_ERROR

Merge commit '624d5b4e8c20516516d0bff74479b9f5abdfe61c' into gingerbread-plus-aosp

* commit '624d5b4e8c20516516d0bff74479b9f5abdfe61c':
  SIP: add DisconnectCause.SERVER_ERROR
This commit is contained in:
Hung-ying Tyan
2010-09-27 23:58:08 -07:00
committed by Android Git Automerger
3 changed files with 6 additions and 6 deletions

View File

@@ -42,6 +42,7 @@ public abstract class Connection {
NUMBER_UNREACHABLE, /* cannot reach the peer */
INVALID_CREDENTIALS, /* invalid credentials */
OUT_OF_NETWORK, /* calling from out of network is not allowed */
SERVER_ERROR, /* server error */
TIMED_OUT, /* client timed out */
LOST_SIGNAL,
LIMIT_EXCEEDED, /* eg GSM ACM limit exceeded */

View File

@@ -883,8 +883,10 @@ public class SipPhone extends SipPhoneBase {
case SipErrorCode.CROSS_DOMAIN_AUTHENTICATION:
onError(Connection.DisconnectCause.OUT_OF_NETWORK);
break;
case SipErrorCode.SOCKET_ERROR:
case SipErrorCode.SERVER_ERROR:
onError(Connection.DisconnectCause.SERVER_ERROR);
break;
case SipErrorCode.SOCKET_ERROR:
case SipErrorCode.CLIENT_ERROR:
default:
Log.w(LOG_TAG, "error: " + SipErrorCode.toString(errorCode)