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

Commit 099b5d9a authored by andychou's avatar andychou
Browse files

Map ImsReasonInfo.CODE_SIP_USER_REJECTED(SIP 603 DECLINE) as DisconnectCause.NORMAL

Network doesn't treat SIP 603 DECLINE as error condition
This can be observed from some carrier requirements like VZW
VZ_REQ_IMS_22961 or Softbank OTR-Voice-032026
So we should not treat it as server error.

Bug: b/119804523
Test: Build pass
Change-Id: I98d088120096a5686f788d85ecbc205e65475b15
parent 67f3a783
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1993,6 +1993,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                return DisconnectCause.INCOMING_REJECTED;

            case ImsReasonInfo.CODE_USER_TERMINATED_BY_REMOTE:
            case ImsReasonInfo.CODE_SIP_USER_REJECTED:
                return DisconnectCause.NORMAL;

            case ImsReasonInfo.CODE_SIP_FORBIDDEN:
@@ -2001,7 +2002,6 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            case ImsReasonInfo.CODE_SIP_REDIRECTED:
            case ImsReasonInfo.CODE_SIP_BAD_REQUEST:
            case ImsReasonInfo.CODE_SIP_NOT_ACCEPTABLE:
            case ImsReasonInfo.CODE_SIP_USER_REJECTED:
            case ImsReasonInfo.CODE_SIP_GLOBAL_ERROR:
                return DisconnectCause.SERVER_ERROR;