diff options
author | Hung-ying Tyan <tyanh@google.com> | 2010-09-15 07:07:19 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-09-15 07:07:19 -0700 |
commit | 074663c7625e84caad1b6305c8b88968c28a4618 (patch) | |
tree | ec8bc8b845a7917ae44373d2ad9552221ebcffe2 /telephony | |
parent | d96c5e0cb31f486fb30dc836f0e74b2216f2ccc2 (diff) | |
parent | ca83c25decd0d4dc9c765a2b42424c7974bd496a (diff) | |
download | frameworks_base-074663c7625e84caad1b6305c8b88968c28a4618.zip frameworks_base-074663c7625e84caad1b6305c8b88968c28a4618.tar.gz frameworks_base-074663c7625e84caad1b6305c8b88968c28a4618.tar.bz2 |
am ca83c25d: am 4565933f: Merge "SipService: deliver connectivity change to all sessions." into gingerbread
Merge commit 'ca83c25decd0d4dc9c765a2b42424c7974bd496a'
* commit 'ca83c25decd0d4dc9c765a2b42424c7974bd496a':
SipService: deliver connectivity change to all sessions.
Diffstat (limited to 'telephony')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/sip/SipPhone.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/telephony/java/com/android/internal/telephony/sip/SipPhone.java b/telephony/java/com/android/internal/telephony/sip/SipPhone.java index a720eac..f85096d 100755 --- a/telephony/java/com/android/internal/telephony/sip/SipPhone.java +++ b/telephony/java/com/android/internal/telephony/sip/SipPhone.java @@ -638,9 +638,9 @@ public class SipPhone extends SipPhoneBase { @Override protected void onError(DisconnectCause cause) { Log.w(LOG_TAG, "SIP error: " + cause); - if (mSipAudioCall.isInCall()) { - // Don't end the call when in call. - // TODO: how to deliver the error to PhoneApp + if (mSipAudioCall.isInCall() + && (cause != DisconnectCause.LOST_SIGNAL)) { + // Don't end the call when in a call. return; } @@ -828,6 +828,9 @@ public class SipPhone extends SipPhoneBase { case TRANSACTION_TERMINTED: onError(Connection.DisconnectCause.TIMED_OUT); break; + case DATA_CONNECTION_LOST: + onError(Connection.DisconnectCause.LOST_SIGNAL); + break; case INVALID_CREDENTIALS: onError(Connection.DisconnectCause.INVALID_CREDENTIALS); break; |