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

Commit bbb2f925 authored by haoyu li's avatar haoyu li Committed by takeshi tanigawa
Browse files

IMS: Notify call failed for unobtainable number

"Server unreachable" is displayed when user makes IMS call with
unobtainable number. But "Invalid Number" is displayed when user makes
CS call with the same number. They are inconsistent. "Invalid Number"
should be displayed in IMS call.

To fix this, add a case that map the fail cause to
DisconnectCause#UNOBTAINABLE_NUMBER.

Test: manual - Checked that "Invalid number" is shown when make the IMS
MO call to unobtainable number.
Bug: 69940434

Change-Id: I7bf653c137ad0ee4aba0ab03ab4f054451410839
parent e3e13a38
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -544,6 +544,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                PreciseDisconnectCause.ACCESS_CLASS_BLOCKED);
        PRECISE_CAUSE_MAP.append(ImsReasonInfo.CODE_NETWORK_DETACH,
                PreciseDisconnectCause.NETWORK_DETACH);
        PRECISE_CAUSE_MAP.append(ImsReasonInfo.CODE_UNOBTAINABLE_NUMBER,
                PreciseDisconnectCause.UNOBTAINABLE_NUMBER);
        PRECISE_CAUSE_MAP.append(ImsReasonInfo.CODE_OEM_CAUSE_1,
                PreciseDisconnectCause.OEM_CAUSE_1);
        PRECISE_CAUSE_MAP.append(ImsReasonInfo.CODE_OEM_CAUSE_2,
@@ -2024,6 +2026,9 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            case ImsReasonInfo.CODE_DIAL_VIDEO_MODIFIED_TO_USSD:
                return DisconnectCause.DIAL_VIDEO_MODIFIED_TO_USSD;

            case ImsReasonInfo.CODE_UNOBTAINABLE_NUMBER:
                return DisconnectCause.UNOBTAINABLE_NUMBER;

            default:
        }