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
Review at https://gerrit.osmocom.org/1523
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(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/23/1523/1
diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 07b5527..6e4d0a7 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 015919a..1174550 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 11e264c..33176a4 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -26,6 +26,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: newchange
Gerrit-Change-Id: Id173c978616c98b7831fbafb5401064257f1cf73
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>