am 6d028dd2: Merge "SIP: Feedback any provisional responses in addition to RING" into gingerbread
Merge commit '6d028dd2f102a6eafaa2edebeb55f55b4c32fc42' into gingerbread-plus-aosp * commit '6d028dd2f102a6eafaa2edebeb55f55b4c32fc42': SIP: Feedback any provisional responses in addition to RING
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user