mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-29 13:43:07 +00:00
block code when no dtls is present
This commit is contained in:
parent
2b6a0ce0a4
commit
53457e05bf
@ -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) {
|
} else if (m->m_type == sdp_media_audio && m->m_port && !got_audio) {
|
||||||
sdp_rtpmap_t *map;
|
sdp_rtpmap_t *map;
|
||||||
|
|
||||||
|
if (switch_rtp_has_dtls()) {
|
||||||
for (attr = m->m_attributes; attr; attr = attr->a_next) {
|
for (attr = m->m_attributes; attr; attr = attr->a_next) {
|
||||||
|
|
||||||
if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) {
|
if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) {
|
||||||
got_crypto = 1;
|
got_crypto = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (attr = m->m_attributes; attr; attr = attr->a_next) {
|
for (attr = m->m_attributes; attr; attr = attr->a_next) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user