diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-06-16 18:34:52 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-06-16 18:39:59 +0200 |
commit | b1a35d63b9ad888429216276d060429d0991aaf7 (patch) | |
tree | 2eb5cbe8b01eedf5903268f8e0b16fdd473152be /src/gsm/gsm0480.c | |
parent | 6a6a609309bee71e0ed0cba4753f06ae36038a44 (diff) |
gsm 04.80: Add value_string for component type and op code
Change-Id: I2615a88db5224d65f37c7cc505e183ec8b196e8a
Diffstat (limited to 'src/gsm/gsm0480.c')
-rw-r--r-- | src/gsm/gsm0480.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gsm/gsm0480.c b/src/gsm/gsm0480.c index 300c0ede..165b309f 100644 --- a/src/gsm/gsm0480.c +++ b/src/gsm/gsm0480.c @@ -3,6 +3,7 @@ /* * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org> * (C) 2009 by Mike Haben <michael.haben@btinternet.com> + * (C) 2018 by Harald Welte <laforge@gnumonks.org> * * All Rights Reserved * @@ -35,6 +36,37 @@ #include <string.h> #include <errno.h> +const struct value_string gsm0480_comp_type_names[] = { + { GSM0480_CTYPE_INVOKE, "Invoke" }, + { GSM0480_CTYPE_RETURN_RESULT, "ReturnResult" }, + { GSM0480_CTYPE_RETURN_ERROR, "ReturnError" }, + { GSM0480_CTYPE_REJECT, "Reject" }, + { 0, NULL } +}; + +const struct value_string gsm0480_op_code_names[] = { + { GSM0480_OP_CODE_REGISTER_SS, "RegisterSS" }, + { GSM0480_OP_CODE_ERASE_SS, "EraseSS" }, + { GSM0480_OP_CODE_ACTIVATE_SS, "ActivateSS" }, + { GSM0480_OP_CODE_DEACTIVATE_SS, "DeactivateSS" }, + { GSM0480_OP_CODE_INTERROGATE_SS, "IngerrogateSS" }, + { GSM0480_OP_CODE_NOTIFY_SS, "NotifySS" }, + { GSM0480_OP_CODE_REGISTER_PASSWORD, "RegisterPassword" }, + { GSM0480_OP_CODE_GET_PASSWORD, "GetPassword" }, + { GSM0480_OP_CODE_PROCESS_USS_DATA, "ProcessUSSD" }, + { GSM0480_OP_CODE_FORWARD_CHECK_SS_IND, "ForwardChecckSSind" }, + { GSM0480_OP_CODE_PROCESS_USS_REQ, "ProcessUssReq" }, + { GSM0480_OP_CODE_USS_REQUEST, "UssRequest" }, + { GSM0480_OP_CODE_USS_NOTIFY, "UssNotify" }, + { GSM0480_OP_CODE_FORWARD_CUG_INFO, "ForwardCugInfo" }, + { GSM0480_OP_CODE_SPLIT_MPTY, "SplitMPTY" }, + { GSM0480_OP_CODE_RETRIEVE_MPTY, "RetrieveMPTY" }, + { GSM0480_OP_CODE_HOLD_MPTY, "HoldMPTY" }, + { GSM0480_OP_CODE_BUILD_MPTY, "BuildMPTY" }, + { GSM0480_OP_CODE_FORWARD_CHARGE_ADVICE, "ForwardChargeAdvice" }, + { 0, NULL } +}; + static inline unsigned char *msgb_wrap_with_TL(struct msgb *msgb, uint8_t tag) { uint8_t *data = msgb_push(msgb, 2); |