gsm/gsm48.c: add call independent SS message names
Change-Id: I697639d8469e5dda617b27995c4a92e1f0c0bead
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index 0bce1ed..b4892de 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 @@
{ 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 @@
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;