From fcef3ad4b13044732fea8be93f445a40b2e3c3b3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 6 Mar 2014 19:37:08 -0600 Subject: [PATCH] FS-6319 --resolve --- src/switch_core_media.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }