From: Anthony Minessale Date: Fri, 28 Feb 2014 16:57:47 +0000 (+0500) Subject: FS-5886 --resolve add NDLB_broken_opus_sdp which must be set as a global variable... X-Git-Tag: v1.5.11~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15f4bd44caeff95495b5190d9154fd416c9567d7;p=thirdparty%2Ffreeswitch.git FS-5886 --resolve add NDLB_broken_opus_sdp which must be set as a global variable in var.xml or switch.conf.xml to enable broken opus mode for back compat with counterpath mobile --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 458b418d7f..5167ea534f 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -226,7 +226,7 @@ SWITCH_DECLARE(int) switch_core_media_crypto_keylen(switch_rtp_crypto_key_type_t static int get_channels(const char *name, int dft) { - if (!strcasecmp(name, "opus")) { + if (switch_false(switch_core_get_variable("NDLB_broken_opus_sdp")) && !strcasecmp(name, "opus")) { return 2; /* IKR???*/ }