]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5886 --resolve add NDLB_broken_opus_sdp which must be set as a global variable...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 16:57:47 +0000 (21:57 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 16:57:47 +0000 (21:57 +0500)
src/switch_core_media.c

index 458b418d7f0e50ddb8cfcca9aa900708d3fc27cf..5167ea534f8e95eaef7f6cdafe55dd96de9546a3 100644 (file)
@@ -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???*/
        }