codec_pref: Log unsupported codec name used

Change-Id: If3ed8ba3bad7c927ed0efc908c005cd308e304e6
This commit is contained in:
Pau Espin 2018-09-04 11:45:58 +02:00 committed by Harald Welte
parent dd6849da18
commit c0b6dd000e
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,7 @@
*/
#include <osmocom/core/msgb.h>
#include <osmocom/gsm/protocol/gsm_08_08.h>
#include <osmocom/gsm/gsm0808_utils.h>
#include <osmocom/bsc/bsc_msc_data.h>
#include <osmocom/bsc/codec_pref.h>
@ -43,7 +44,9 @@ static enum gsm48_chan_mode gsm88_to_chan_mode(enum gsm0808_permitted_speech spe
return GSM48_CMODE_SPEECH_AMR;
break;
default:
LOGP(DMSC, LOGL_FATAL, "Unsupported permitted speech selected, assuming AMR as channel mode...\n");
LOGP(DMSC, LOGL_FATAL, "Unsupported permitted speech %s selected, "
"assuming AMR as channel mode...\n",
gsm0808_permitted_speech_name(speech));
return GSM48_CMODE_SPEECH_AMR;
}
}