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

Commit 2d7aad77 authored by Guillaume Lucas's avatar Guillaume Lucas Committed by Shuo Gao
Browse files

Telephony: add support for additional information



As per ETSI 102 223 section 8.12, for some general results, it is
mandatory for the terminal to provide a specific cause value as
additional information.

This patch adds this support to the framework.

Change-Id: Ie22e60412d674e24f9ebf13d02da4b39cb2dd253
Author: Guillaume Lucas <guillaume.lucas@intel.com>
Signed-off-by: default avatarGuillaume Lucas <guillaume.lucas@intel.com>
Signed-off-by: default avatarArun Ravindran <arun.ravindran@intel.com>
Signed-off-by: default avatarJeevaka Badrappan <jeevaka.badrappan@intel.com>
Signed-off-by: default avatarShuo Gao <shuo.gao@intel.com>
Signed-off-by: default avatarBruce Beare <bruce.j.beare@intel.com>
Signed-off-by: default avatarJack Ren <jack.ren@intel.com>
Author-tracking-BZ: 29915
parent 106de004
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@ public class CatResponseMessage {
        String usersInput  = null;
        boolean usersYesNoSelection = false;
        boolean usersConfirm = false;

        boolean includeAdditionalInfo = false;
        int additionalInfo = 0;
        public CatResponseMessage(CatCmdMessage cmdMsg) {
            this.cmdDet = cmdMsg.mCmdDet;
        }
@@ -48,6 +49,11 @@ public class CatResponseMessage {
            usersConfirm = confirm;
        }

        public void setAdditionalInfo(int info) {
            this.includeAdditionalInfo = true;
            this.additionalInfo = info;
        }

        CommandDetails getCmdDetails() {
            return cmdDet;
        }
+3 −1
Original line number Diff line number Diff line
@@ -719,6 +719,7 @@ public class CatService extends Handler implements AppInterface {
        case PRFRMD_WITH_MODIFICATION:
        case PRFRMD_NAA_NOT_ACTIVE:
        case PRFRMD_TONE_NOT_PLAYED:
        case TERMINAL_CRNTLY_UNABLE_TO_PROCESS:
            switch (AppInterface.CommandType.fromInt(cmdDet.typeOfCommand)) {
            case SET_UP_MENU:
                helpRequired = resMsg.resCode == ResultCode.HELP_INFO_REQUIRED;
@@ -763,7 +764,8 @@ public class CatService extends Handler implements AppInterface {
        default:
            return;
        }
        sendTerminalResponse(cmdDet, resMsg.resCode, false, 0, resp);
        sendTerminalResponse(cmdDet, resMsg.resCode, resMsg.includeAdditionalInfo,
                resMsg.additionalInfo, resp);
        mCurrntCmd = null;
    }