From 15f4bd44caeff95495b5190d9154fd416c9567d7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 28 Feb 2014 21:57:47 +0500 Subject: [PATCH] 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 --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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???*/ }