summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-01-02 19:05:25 +0100
committerMax <msuraev@sysmocom.de>2017-01-06 11:37:09 +0000
commit07352fee098758431ae1434c47c054d94887a6d4 (patch)
tree698b357124b683d097097f1b249f56775d68e67a
parent848de8f1df561f4253f754ec3f2415e541071420 (diff)
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
-rw-r--r--include/osmocom/gsm/protocol/gsm_12_21.h2
-rw-r--r--src/gsm/abis_nm.c15
-rw-r--r--src/gsm/libosmogsm.map1
3 files changed, 18 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 58bb7307..6a37392c 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -274,6 +274,8 @@ enum abis_mm_event_causes {
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 c085e069..87d05ab0 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -149,6 +149,21 @@ const char *abis_nm_nack_name(uint8_t nack)
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 b84f859f..c876d2b4 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -25,6 +25,7 @@ abis_nm_sw_load_msgs;
abis_nm_test_name;
abis_nm_osmo_magic;
abis_nm_ipa_magic;
+abis_nm_event_cause_names;
osmo_sitype_strs;
osmo_c4;