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

block code when no dtls is present

上级 2b6a0ce0
......@@ -2307,11 +2307,14 @@ 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) {
sdp_rtpmap_t *map;
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_crypto = 1;
}
}
}
for (attr = m->m_attributes; attr; attr = attr->a_next) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论