[Freeswitch-svn] [commit] r9687 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Sat Sep 27 17:05:19 EDT 2008
Author: anthm
Date: Sat Sep 27 17:05:18 2008
New Revision: 9687
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
Log:
(MODENDP-126) don't accept crypto in the RTP/AVP
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Sat Sep 27 17:05:18 2008
@@ -2203,6 +2203,13 @@
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);
More information about the Freeswitch-svn
mailing list