summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-06-16 11:10:12 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-16 11:11:08 +0200
commit6a6a609309bee71e0ed0cba4753f06ae36038a44 (patch)
tree0c46fb1b679e8f2cd06e34d3cb1a9d470a6bb529 /src
parentf1318fe371a1943b8e3dc291a19844e084cbb2c2 (diff)
gsup: Add value_string for Session State IE
In Change-Id I1cee271fed0284a134ffed103c0d4bebbcfde2a8 we added support for a new session state IE, but we didn't add any value_string array for string conversion of it. Let's fix this. Change-Id: I3d9f087786dc37c42498fa9a2be07483ec93ba7b
Diffstat (limited to 'src')
-rw-r--r--src/gsm/gsup.c8
-rw-r--r--src/gsm/libosmogsm.map1
2 files changed, 9 insertions, 0 deletions
diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c
index e3eef02e..9c2f8175 100644
--- a/src/gsm/gsup.c
+++ b/src/gsm/gsup.c
@@ -70,6 +70,14 @@ const struct value_string osmo_gsup_message_type_names[] = {
{ 0, NULL }
};
+const struct value_string osmo_gsup_session_state_names[] = {
+ { OSMO_GSUP_SESSION_STATE_NONE, "NONE" },
+ { OSMO_GSUP_SESSION_STATE_BEGIN, "BEGIN" },
+ { OSMO_GSUP_SESSION_STATE_CONTINUE, "CONTINUE" },
+ { OSMO_GSUP_SESSION_STATE_END, "END" },
+ { 0, NULL }
+};
+
/*! return the error message type corresponding to \a type_in
* \returns matching error message type; -1 on error */
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index f98f7c94..4d9811b0 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -469,6 +469,7 @@ osmo_apn_from_str;
osmo_gsup_encode;
osmo_gsup_decode;
osmo_gsup_message_type_names;
+osmo_gsup_session_state_names;
osmo_gsup_get_err_msg_type;
osmo_oap_encode;