summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-04-17 11:17:28 +0700
committerHarald Welte <laforge@gnumonks.org>2018-04-17 12:09:48 +0000
commit8d41d722d605bc3eb2e71daea29bf21ac9031ae3 (patch)
tree3f5d6ff6a94ce95c85a17e95f292bd48c476796c /src
parent07bfd565a809d4843bc13aec7dc3fac26063237c (diff)
gsm/gsm48.c: add call independent SS message names
Change-Id: I697639d8469e5dda617b27995c4a92e1f0c0bead
Diffstat (limited to 'src')
-rw-r--r--src/gsm/gsm48.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index 0bce1eda..b4892dea 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -41,6 +41,7 @@
#include <osmocom/gsm/gsm0502.h>
#include <osmocom/gsm/gsm_utils.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
+#include <osmocom/gsm/protocol/gsm_04_80.h>
#include <osmocom/gsm/protocol/gsm_08_58.h>
#include <osmocom/gsm/protocol/gsm_04_08_gprs.h>
@@ -944,6 +945,14 @@ const struct value_string gsm48_cc_msgtype_names[] = {
{ 0, NULL }
};
+/*! TS 04.80, section 3.4 Messages for supplementary services control */
+const struct value_string gsm48_nc_ss_msgtype_names[] = {
+ OSMO_VALUE_STRING(GSM0480_MTYPE_RELEASE_COMPLETE),
+ OSMO_VALUE_STRING(GSM0480_MTYPE_FACILITY),
+ OSMO_VALUE_STRING(GSM0480_MTYPE_REGISTER),
+ { 0, NULL }
+};
+
/*! Compose a string naming the message type for given protocol.
* If the message type string is known, return the message type name, otherwise
* return "<protocol discriminator name>:<message type in hex>".
@@ -966,6 +975,9 @@ const char *gsm48_pdisc_msgtype_name(uint8_t pdisc, uint8_t msg_type)
case GSM48_PDISC_CC:
msgt_names = gsm48_cc_msgtype_names;
break;
+ case GSM48_PDISC_NC_SS:
+ msgt_names = gsm48_nc_ss_msgtype_names;
+ break;
default:
msgt_names = NULL;
break;