From 4711fd2b920dae1a76066d6ad776917fb8a199a3 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 5 Feb 2013 15:45:35 -0600 Subject: [PATCH] same issue --- src/switch_core_media.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 42d9f6d922..f9769d71cd 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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; + } } }