diff options
author | Hung-ying Tyan <tyanh@google.com> | 2010-09-29 01:52:16 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2010-09-29 02:26:47 +0800 |
commit | 6057cd00d95c756b78f22c67279cb982bc0674ef (patch) | |
tree | a238f787831b73d642e04723731b72ee9050841f /voip/java/com | |
parent | c89dd54ceeec99173d51d1196e2c03a58f120211 (diff) | |
download | frameworks_base-6057cd00d95c756b78f22c67279cb982bc0674ef.zip frameworks_base-6057cd00d95c756b78f22c67279cb982bc0674ef.tar.gz frameworks_base-6057cd00d95c756b78f22c67279cb982bc0674ef.tar.bz2 |
SIP: Feedback any provisional responses in addition to RING
The only exception is TRYING.
Also remove an unused import in SipSessionGroup.
http://b/issue?id=3021865
Change-Id: I160982b0c4b417362f1fb961217db90c3a585ce5
Diffstat (limited to 'voip/java/com')
-rw-r--r-- | voip/java/com/android/server/sip/SipSessionGroup.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/voip/java/com/android/server/sip/SipSessionGroup.java b/voip/java/com/android/server/sip/SipSessionGroup.java index 8f9a26b..4321d7b 100644 --- a/voip/java/com/android/server/sip/SipSessionGroup.java +++ b/voip/java/com/android/server/sip/SipSessionGroup.java @@ -28,7 +28,6 @@ import android.net.sip.ISipSessionListener; import android.net.sip.SipErrorCode; import android.net.sip.SipProfile; import android.net.sip.SipSession; -import android.net.sip.SipSessionAdapter; import android.text.TextUtils; import android.util.Log; @@ -959,6 +958,11 @@ class SipSessionGroup implements SipListener { int statusCode = response.getStatusCode(); switch (statusCode) { case Response.RINGING: + case Response.CALL_IS_BEING_FORWARDED: + case Response.QUEUED: + case Response.SESSION_PROGRESS: + // feedback any provisional responses (except TRYING) as + // ring back for better UX if (mState == SipSession.State.OUTGOING_CALL) { mState = SipSession.State.OUTGOING_CALL_RING_BACK; mProxy.onRingingBack(this); |