aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2024-02-07 02:55:18 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2024-02-09 05:17:40 +0100
commitbd7a177eecc3d373380c44e4280fbf86273a3a18 (patch)
tree7d218d174da15e152d2df907426bb9a6ec910501
parent2dd8449f7cf037622c6e6ceb34c4ccaa7c871b55 (diff)
dbg log
-rw-r--r--src/libmsc/codec_mapping.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libmsc/codec_mapping.c b/src/libmsc/codec_mapping.c
index c7aeb7b0c..59003a72d 100644
--- a/src/libmsc/codec_mapping.c
+++ b/src/libmsc/codec_mapping.c
@@ -456,12 +456,18 @@ int sdp_audio_codec_add_to_bearer_cap(struct gsm_mncc_bearer_cap *bearer_cap, co
{
const struct codec_mapping *m;
int added = 0;
+ LOGP(DLGLOBAL, LOGL_ERROR, "sdp_audio_codec_add_to_bearer_cap(%s)\n", sdp_audio_codec_to_str(codec));
codec_mapping_foreach(m) {
int i;
if (sdp_audio_codec_cmp(&m->sdp, codec, true, false))
continue;
- for (i = 0; i < m->speech_ver_count; i++)
+ LOGP(DLGLOBAL, LOGL_ERROR, " %s speech_ver_count %d\n", sdp_audio_codec_to_str(&m->sdp),
+ m->speech_ver_count);
+ for (i = 0; i < m->speech_ver_count; i++) {
+ LOGP(DLGLOBAL, LOGL_ERROR, " - add %s (enum gsm48_bcap_speech_ver)%d\n", sdp_audio_codec_to_str(&m->sdp),
+ m->speech_ver[i]);
added += bearer_cap_add_speech_ver(bearer_cap, m->speech_ver[i]);
+ }
}
return added;
}