]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
same issue
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Feb 2013 21:45:35 +0000 (15:45 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Apr 2013 02:27:24 +0000 (21:27 -0500)
src/switch_core_media.c

index 42d9f6d922c0cb410022f3f8c5e3ed50568cb288..f9769d71cd0767d6034e48ea398e34f6fbecf6b8 100644 (file)
@@ -2678,9 +2678,11 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
 
                        for (map = m->m_rtpmaps; map; map = map->rm_next) {
 
-                               for (attr = m->m_attributes; attr; attr = attr->a_next) {
-                                       if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) {
-                                               got_video_crypto = 1;
+                               if (switch_rtp_has_dtls()) {
+                                       for (attr = m->m_attributes; attr; attr = attr->a_next) {
+                                               if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) {
+                                                       got_video_crypto = 1;
+                                               }
                                        }
                                }