summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-01-12 05:34:03 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-12 05:34:05 +0100
commitffad574a4b68596d17671965bf145f11f0b00e57 (patch)
tree569607d14beb864e7e92c41b3af1b80947e45d22 /src/gsm
parente29ec85375f004e63c650e69a9fe5910b15a00eb (diff)
gsm: add gsm0808_speech_codec_type_names
Used for logging Speech Codec List entries in osmo-bsc, during handover decision. Change-Id: Ie6418d16db333188e9bcd2b32b7216f277ae8832
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 abf3d251..c0be374d 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -842,4 +842,18 @@ const char *gsm0808_bssap_name(uint8_t msg_type)
return get_value_string(gsm0808_bssap_names, msg_type);
}
+const struct value_string gsm0808_speech_codec_type_names[] = {
+ { GSM0808_SCT_FR1, "FR1" },
+ { GSM0808_SCT_FR2, "FR2" },
+ { GSM0808_SCT_FR3, "FR3" },
+ { GSM0808_SCT_FR4, "FR4" },
+ { GSM0808_SCT_FR5, "FR5" },
+ { GSM0808_SCT_HR1, "HR1" },
+ { GSM0808_SCT_HR3, "HR3" },
+ { GSM0808_SCT_HR4, "HR4" },
+ { GSM0808_SCT_HR6, "HR6" },
+ { GSM0808_SCT_CSD, "CSD" },
+ { 0, NULL }
+};
+
/*! @} */
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map
index 5611ba3f..985ec839 100644
--- a/src/gsm/libosmogsm.map
+++ b/src/gsm/libosmogsm.map
@@ -172,6 +172,7 @@ gsm0808_enc_cell_id_list;
gsm0808_dec_cell_id_list;
gsm0808_chan_type_to_speech_codec;
gsm0808_speech_codec_from_chan_type;
+gsm0808_speech_codec_type_names;
gsm0858_rsl_ul_meas_enc;