summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-01-10 23:33:32 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2019-01-14 17:42:03 +0000
commitf8963f9d4e06a37c96cc0fed91f2b3f731382594 (patch)
treebbf3777a4b42bbe29d0e086a1e5ea473223bbbf4 /src/gsm
parent894be2d9da60a8e0f7ffc0224e3f294ce49b70be (diff)
change GSM48_CMSERV_* to enum type, add names
Prepare handling multiple CM Service Requests in osmo-msc: an enum is more clear than an int and #defines for passing around and count CM Service types. Change-Id: I9c2a7adc45ab7a1a7519168e965e7d805e1481ff
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm48.c11
-rw-r--r--src/gsm/libosmogsm.map1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index 099b85d0..795e98bf 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -1145,4 +1145,15 @@ const struct value_string osmo_lu_type_names[] = {
{}
};
+const struct value_string osmo_cm_service_type_names[] = {
+ { GSM48_CMSERV_MO_CALL_PACKET, "MO-Call" },
+ { GSM48_CMSERV_EMERGENCY, "Emergency-Call" },
+ { GSM48_CMSERV_SMS, "Short-Messaging-Service" },
+ { GSM48_CMSERV_SUP_SERV, "Supplementary-Service" },
+ { GSM48_CMSERV_VGCS, "Voice-Group-Call" },
+ { GSM48_CMSERV_VBS, "Voice-Broadcast-Call" },
+ { GSM48_CMSERV_LOC_SERV, "Location-Service" },
+ {}
+};
+
/*! @} */
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 331c3f0f..60ce5d13 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -574,6 +574,7 @@ sgsap_ie_tlvdef;
osmo_rat_type_names;
osmo_lu_type_names;
+osmo_cm_service_type_names;
local: *;
};