From: Anthony Minessale Date: Fri, 7 Mar 2014 01:37:08 +0000 (-0600) Subject: FS-6319 --resolve X-Git-Tag: v1.5.11~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcef3ad4b13044732fea8be93f445a40b2e3c3b3;p=thirdparty%2Ffreeswitch.git FS-6319 --resolve --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 51fb558b89..f78d116c59 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -6457,7 +6457,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess if (switch_channel_test_flag(session->channel, CF_WEBRTC) || (mult && switch_false(mult))) { char *bp = buf; - int both = switch_channel_test_flag(session->channel, CF_WEBRTC) ? 0 : 1; + int both = (switch_channel_test_flag(session->channel, CF_WEBRTC) || switch_channel_test_flag(session->channel, CF_DTLS)) ? 0 : 1; if ((!a_engine->no_crypto && switch_channel_test_flag(session->channel, CF_SECURE)) || switch_channel_test_flag(session->channel, CF_DTLS)) { @@ -6505,7 +6505,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess } } - if (switch_channel_test_flag(session->channel, CF_WEBRTC)) { + if (switch_channel_test_flag(session->channel, CF_WEBRTC) || switch_channel_test_flag(session->channel, CF_DTLS)) { both = 0; }