summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-07-12 18:21:07 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-12 18:18:39 +0000
commitcdd05816dae6d33c6165c7cb4f118b8e4b7c6ab0 (patch)
tree809648da7bac14bd71cb80a0edf1a1c0841872ff /src/gsm
parent5796a218db4d41ac68a9091f5b98b1e546b54d6d (diff)
gsm_08_08: gsm0808_permitted_speech does not have value strings
enum gsm0808_permitted_speech does not have any value strings. Lets add value strings to make debugging easier. Change-Id: I5b5612a5df2758b0137a34c17f7c8c2b3f07c806
Diffstat (limited to 'src/gsm')
-rw-r--r--src/gsm/gsm0808.c14
-rw-r--r--src/gsm/libosmogsm.map1
2 files changed, 15 insertions, 0 deletions
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index 625de81f..a26addd4 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -1153,6 +1153,20 @@ const struct value_string gsm0808_speech_codec_type_names[] = {
{ 0, NULL }
};
+const struct value_string gsm0808_permitted_speech_names[] = {
+ { GSM0808_PERM_FR1, "FR1" },
+ { GSM0808_PERM_FR2, "FR2" },
+ { GSM0808_PERM_FR3, "FR3" },
+ { GSM0808_PERM_FR4, "FR4" },
+ { GSM0808_PERM_FR5, "FR5" },
+ { GSM0808_PERM_HR1, "HR1" },
+ { GSM0808_PERM_HR2, "HR2" },
+ { GSM0808_PERM_HR3, "HR3" },
+ { GSM0808_PERM_HR4, "HR4" },
+ { GSM0808_PERM_HR6, "HR6" },
+ { 0, NULL }
+};
+
static const struct value_string gsm0808_cause_names[] = {
{ GSM0808_CAUSE_RADIO_INTERFACE_MESSAGE_FAILURE, "RADIO INTERFACE MESSAGE FAILURE" },
{ GSM0808_CAUSE_RADIO_INTERFACE_FAILURE, "RADIO INTERFACE FAILURE" },
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 96779d22..5eed5b56 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -201,6 +201,7 @@ gsm0808_cell_id_u_name;
gsm0808_chan_type_to_speech_codec;
gsm0808_speech_codec_from_chan_type;
gsm0808_speech_codec_type_names;
+gsm0808_permitted_speech_names;
gsm0808_channel_type_name;
gsm0808_lcls_config_names;
gsm0808_lcls_control_names;