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

* commit 'd7116ff1f0d1a3c14992273d0b899c3b71ba6d3f':
  Do not suppress error feedback during a SIP call.
This commit is contained in:
Hung-ying Tyan
2010-11-30 22:55:37 -08:00
committed by Android Git Automerger
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,12 +1186,7 @@ class SipSessionGroup implements SipListener {
onRegistrationFailed(errorCode, message);
break;
default:
if ((errorCode != SipErrorCode.DATA_CONNECTION_LOST)
&& mInCall) {
fallbackToPreviousInCall(errorCode, message);
} else {
endCallOnError(errorCode, message);
}
endCallOnError(errorCode, message);
}
}