Change-Id: If8b30d6efc1c70ed0e5b0de5b27309f6fc3a2f1b
This commit is contained in:
Neels Hofmeyr 2024-02-05 06:25:38 +01:00
parent cb75da2e30
commit 1802478428
1 changed files with 5 additions and 0 deletions

View File

@ -606,12 +606,16 @@ int sdp_audio_codecs_to_gsm0808_channel_type(struct gsm0808_channel_type *ct, co
*ct = (struct gsm0808_channel_type){
.ch_indctr = GSM0808_CHAN_SPEECH,
};
LOGP(DLGLOBAL, LOGL_ERROR, "sdp_audio_codecs_to_gsm0808_channel_type()\n");
sdp_audio_codecs_foreach(codec, ac) {
const struct codec_mapping *m;
int i;
bool dup;
idx++;
LOGP(DLGLOBAL, LOGL_ERROR, "- codec = %s\n", sdp_audio_codec_to_str(codec));
codec_mapping_foreach(m) {
if (sdp_audio_codec_cmp(codec, &m->sdp, true, false))
continue;
@ -652,6 +656,7 @@ int sdp_audio_codecs_to_gsm0808_channel_type(struct gsm0808_channel_type *ct, co
if (dup)
continue;
LOGP(DLGLOBAL, LOGL_ERROR, " adding %s\n", gsm0808_permitted_speech_name(m->perm_speech));
ct->perm_spch[ct->perm_spch_len] = m->perm_speech;
ct->perm_spch_len++;
}