]> 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:58:15 +0000 (21:58 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 28 Feb 2014 16:58:15 +0000 (21:58 +0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 24ebe3649455a47b70e4415f189dc1266c8cabaa..087c3a281189452a40cb11135fa6b635f89dd664 100644 (file)
@@ -41,7 +41,7 @@ switch_cache_db_handle_t *_sofia_glue_get_db_handle(sofia_profile_t *profile, co
 
 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???*/
        }