From b1a35d63b9ad888429216276d060429d0991aaf7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 16 Jun 2018 18:34:52 +0200 Subject: gsm 04.80: Add value_string for component type and op code Change-Id: I2615a88db5224d65f37c7cc505e183ec8b196e8a --- src/gsm/gsm0480.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/gsm/gsm0480.c') 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 * (C) 2009 by Mike Haben + * (C) 2018 by Harald Welte * * All Rights Reserved * @@ -35,6 +36,37 @@ #include #include +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); -- cgit v1.2.3