Merge "Do not suppress error feedback during a SIP call." into gingerbread

This commit is contained in:
Hung-ying Tyan
2010-11-30 22:53:26 -08:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 17 deletions

View File

@ -656,12 +656,6 @@ public class SipPhone extends SipPhoneBase {
@Override
protected void onError(DisconnectCause cause) {
if (DEBUG) Log.d(LOG_TAG, "SIP error: " + cause);
if (mSipAudioCall.isInCall()
&& (cause != DisconnectCause.LOST_SIGNAL)) {
// Don't end the call when in a call.
return;
}
onCallEnded(cause);
}
};

View File

@ -1163,11 +1163,6 @@ class SipSessionGroup implements SipListener {
mProxy.onCallEstablished(this, mPeerSessionDescription);
}
private void fallbackToPreviousInCall(int errorCode, String message) {
mState = SipSession.State.IN_CALL;
mProxy.onCallChangeFailed(this, errorCode, message);
}
private void endCallNormally() {
reset();
mProxy.onCallEnded(this);
@ -1191,14 +1186,9 @@ class SipSessionGroup implements SipListener {
onRegistrationFailed(errorCode, message);
break;
default:
if ((errorCode != SipErrorCode.DATA_CONNECTION_LOST)
&& mInCall) {
fallbackToPreviousInCall(errorCode, message);
} else {
endCallOnError(errorCode, message);
}
}
}
private void onError(Throwable exception) {