[PATCH] libosmocore[master]: gsm/gsm48.c: add call independent SS message names

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Tue Apr 17 04:23:51 UTC 2018


Review at  https://gerrit.osmocom.org/7846

gsm/gsm48.c: add call independent SS message names

Change-Id: I697639d8469e5dda617b27995c4a92e1f0c0bead
---
M src/gsm/gsm48.c
1 file changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/46/7846/1

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;

-- 
To view, visit https://gerrit.osmocom.org/7846
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I697639d8469e5dda617b27995c4a92e1f0c0bead
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list