[MERGED] libosmocore[master]: Add event cause string descriptions

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

Max gerrit-no-reply at lists.osmocom.org
Fri Jan 6 11:37:09 UTC 2017


Max has submitted this change and it was merged.

Change subject: Add event cause string descriptions
......................................................................


Add event cause string descriptions

Add human-readable descriptions to event causes from 3GPP TS 12.21 §
9.4.43.

Change-Id: Id173c978616c98b7831fbafb5401064257f1cf73
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, 18 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 58bb730..6a37392 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -274,6 +274,8 @@
 	OSMO_EVT_WARN_SW_WARN		= 0x0001,
 };
 
+extern const struct value_string abis_mm_event_cause_names[];
+
 enum abis_nm_bs11_cell_alloc {
 	NM_BS11_CANR_GSM	= 0x00,
 	NM_BS11_CANR_DCS1800	= 0x01,
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index c085e06..87d05ab 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -149,6 +149,21 @@
 	return get_value_string(nack_names, nack);
 }
 
+/* Section 9.4.43: Manufacturer specific values */
+const struct value_string abis_mm_event_cause_names[] = {
+	{ OSMO_EVT_CRIT_SW_FATAL,	"Fatal software error" },
+	{ OSMO_EVT_CRIT_PROC_STOP,	"Process stopped" },
+	{ OSMO_EVT_CRIT_RTP_TOUT,	"RTP error" },
+	{ OSMO_EVT_CRIT_BOOT_FAIL,	"Boot failure" },
+	{ OSMO_EVT_MAJ_UKWN_MSG,	"Unknown message" },
+	{ OSMO_EVT_MAJ_RSL_FAIL,	"RSL failure" },
+	{ OSMO_EVT_MAJ_UNSUP_ATTR,	"Unsupported attribute" },
+	{ OSMO_EVT_MAJ_NET_CONGEST,	"Network congestion" },
+	{ OSMO_EVT_MIN_PAG_TAB_FULL,	"Paging table full" },
+	{ OSMO_EVT_WARN_SW_WARN,	"Software warning" },
+	{ 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 b84f859..c876d2b 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -25,6 +25,7 @@
 abis_nm_test_name;
 abis_nm_osmo_magic;
 abis_nm_ipa_magic;
+abis_nm_event_cause_names;
 
 osmo_sitype_strs;
 osmo_c4;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id173c978616c98b7831fbafb5401064257f1cf73
Gerrit-PatchSet: 4
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
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Minh-Quang Nguyen <minh-quang.nguyen at nutaq.com>



More information about the gerrit-log mailing list