[MERGED] libosmocore[master]: Add value strings for Probable Cause Type

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Jan 10 23:26:20 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: Add value strings for Probable Cause Type
......................................................................


Add value strings for Probable Cause Type

Add string representation of Probable Cause Type from 3GPP TS 12.21 §
9.4.43.

Change-Id: I9fe14ed3b5398f59dd06a509e4d419e074cc20a7
Related: OS#1615
---
M include/osmocom/gsm/protocol/gsm_12_21.h
M src/gsm/abis_nm.c
M src/gsm/libosmogsm.map
3 files changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index deca2df..1a95311 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -592,6 +592,8 @@
 	NM_PCAUSE_T_MANUF	= 0x03,
 };
 
+extern const struct value_string abis_nm_pcause_type_names[];
+
 /*! \brief NACK causes (Section 9.4.36) */
 enum abis_nm_nack_cause {
 	/* General Nack Causes */
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index 2de4941..f50a54f 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -164,6 +164,13 @@
 	{ 0, NULL }
 };
 
+const struct value_string abis_nm_pcause_type_names[] = {
+	{ NM_PCAUSE_T_X721,	"ISO/CCITT values (X.721)"},
+	{ NM_PCAUSE_T_GSM,	"GSM specific values"},
+	{ NM_PCAUSE_T_MANUF,	"Manufacturer specific values"},
+	{ 0, NULL }
+};
+
 /* Chapter 9.4.36 */
 static const struct value_string nack_cause_names[] = {
 	/* General Nack Causes */
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 0c37d1c..3d1413d 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -27,6 +27,7 @@
 abis_nm_osmo_magic;
 abis_nm_ipa_magic;
 abis_nm_event_cause_names;
+abis_nm_pcause_type_names;
 
 osmo_sitype_strs;
 osmo_c4;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9fe14ed3b5398f59dd06a509e4d419e074cc20a7
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list