mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
(MODENDP-126) don't accept crypto in the RTP/AVP
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9687 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0715b44f52
commit
3f362b0b9a
@ -2203,6 +2203,13 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
|
||||
ptime = atoi(attr->a_value);
|
||||
} else if (!got_crypto && !strcasecmp(attr->a_name, "crypto") && !switch_strlen_zero(attr->a_value)) {
|
||||
int crypto_tag;
|
||||
|
||||
if (m->m_proto != sdp_proto_srtp) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "a=crypto in RTP/AVP\n");
|
||||
match = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
crypto = attr->a_value;
|
||||
crypto_tag = atoi(crypto);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user