aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-01-11 14:10:58 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-25 11:49:08 +0000
commit319f321da54c39b6d17d02e209407f943d43044c (patch)
tree955f5ed0c565cf4d1b78e6c363ccee78e9e57389
parent6030ce844e057e3c3aeb7c3ff02cc092a6edb82d (diff)
OML: add external alerts
Add special cause for alerts produced by external processes. Change-Id: Idd7ee085321f8172c72ecfdba320186049f4d988 Related: OS#1615
-rw-r--r--include/osmocom/gsm/protocol/gsm_12_21.h2
-rw-r--r--src/gsm/abis_nm.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 5daab42b..d6e8c11f 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -275,6 +275,8 @@ enum abis_mm_event_causes {
OSMO_EVT_MIN_PAG_TAB_FULL = 0x0401,
/* Warning causes */
OSMO_EVT_WARN_SW_WARN = 0x0001,
+ /* External causes */
+ OSMO_EVT_EXT_ALARM = 0xfeed,
};
extern const struct value_string abis_mm_event_cause_names[];
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index 9839d29b..10aae9a7 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -161,6 +161,7 @@ const struct value_string abis_mm_event_cause_names[] = {
{ OSMO_EVT_MAJ_NET_CONGEST, "Network congestion" },
{ OSMO_EVT_MIN_PAG_TAB_FULL, "Paging table full" },
{ OSMO_EVT_WARN_SW_WARN, "Software warning" },
+ { OSMO_EVT_EXT_ALARM, "External alarm" },
{ 0, NULL }
};