Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7116ff1 authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Android (Google) Code Review
Browse files

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

parents 04639ba0 4189d99b
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -656,12 +656,6 @@ public class SipPhone extends SipPhoneBase {
            @Override
            @Override
            protected void onError(DisconnectCause cause) {
            protected void onError(DisconnectCause cause) {
                if (DEBUG) Log.d(LOG_TAG, "SIP error: " + 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);
                onCallEnded(cause);
            }
            }
        };
        };
+1 −11
Original line number Original line Diff line number Diff line
@@ -1163,11 +1163,6 @@ class SipSessionGroup implements SipListener {
            mProxy.onCallEstablished(this, mPeerSessionDescription);
            mProxy.onCallEstablished(this, mPeerSessionDescription);
        }
        }


        private void fallbackToPreviousInCall(int errorCode, String message) {
            mState = SipSession.State.IN_CALL;
            mProxy.onCallChangeFailed(this, errorCode, message);
        }

        private void endCallNormally() {
        private void endCallNormally() {
            reset();
            reset();
            mProxy.onCallEnded(this);
            mProxy.onCallEnded(this);
@@ -1191,14 +1186,9 @@ class SipSessionGroup implements SipListener {
                    onRegistrationFailed(errorCode, message);
                    onRegistrationFailed(errorCode, message);
                    break;
                    break;
                default:
                default:
                    if ((errorCode != SipErrorCode.DATA_CONNECTION_LOST)
                            && mInCall) {
                        fallbackToPreviousInCall(errorCode, message);
                    } else {
                    endCallOnError(errorCode, message);
                    endCallOnError(errorCode, message);
            }
            }
        }
        }
        }




        private void onError(Throwable exception) {
        private void onError(Throwable exception) {