dtmf_tester.c: do not try Opus test if codec is not avalaible

parent 9dbaa429
......@@ -39,6 +39,10 @@ void send_dtmf_base(bool_t use_rfc2833, bool_t use_sipinfo, char dtmf, char* dtm
pauline = linphone_core_manager_new( "pauline_tcp_rc");
if (use_opus) {
if (!ms_filter_codec_supported("opus")) {
ms_warning("Opus not supported, skipping test.");
return;
}
disable_all_audio_codecs_except_one(marie->lc, "opus", 48000);
disable_all_audio_codecs_except_one(pauline->lc, "opus", 48000);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment