提交 53457e05 authored 作者: Anthony Minessale's avatar Anthony Minessale

block code when no dtls is present

上级 2b6a0ce0
...@@ -2307,9 +2307,12 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s ...@@ -2307,9 +2307,12 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
} else if (m->m_type == sdp_media_audio && m->m_port && !got_audio) { } else if (m->m_type == sdp_media_audio && m->m_port && !got_audio) {
sdp_rtpmap_t *map; sdp_rtpmap_t *map;
for (attr = m->m_attributes; attr; attr = attr->a_next) { if (switch_rtp_has_dtls()) {
if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) { for (attr = m->m_attributes; attr; attr = attr->a_next) {
got_crypto = 1;
if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) {
got_crypto = 1;
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论