]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6319 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 7 Mar 2014 01:37:08 +0000 (19:37 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 7 Mar 2014 01:37:11 +0000 (19:37 -0600)
src/switch_core_media.c

index 51fb558b89768ee871b5b990cfec813c22619c68..f78d116c59819977ce85bc0ebdee0470353a8ea3 100644 (file)
@@ -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;
                                        }