]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
React to all suites in the defaults and set true to accept the strongest offer received
authorBrian West <brian@freeswitch.org>
Thu, 6 Mar 2014 03:34:05 +0000 (21:34 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 6 Mar 2014 03:34:05 +0000 (21:34 -0600)
conf/vanilla/dialplan/default.xml
conf/vanilla/vars.xml

index 4dc615157ab62e0b2851c36e6264a38eb21dbe81..2abeb38e129fdb979fb227b46decafbf5994f3eb 100644 (file)
        <anti-action application="start_dtmf"/>
       </condition>
       -->
-      <condition field="${rtp_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$" break="never">
+      <condition field="${rtp_has_crypto}" expression="^($${rtp_sdes_suites})$" break="never">
        <action application="set" data="rtp_secure_media=true"/>
        <!-- Offer SRTP on outbound legs if we have it on inbound. -->
        <!-- <action application="export" data="rtp_secure_media=true"/> -->
index d55e126e3db7d5f8915834061739dd221f074a47..906110384c1dafb20ea7413e8a6457a3bf36057f 100644 (file)
@@ -50,7 +50,7 @@
   <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/>
   <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
   <X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
-
+  <X-PRE-PROCESS cmd="set" data="rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8|AES_CM_256_HMAC_SHA1_80|AES_CM_192_HMAC_SHA1_80|AES_CM_128_HMAC_SHA1_80|AES_CM_256_HMAC_SHA1_32|AES_CM_192_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_32|AES_CM_128_NULL_AUTH"/>
   <!--
       Enable ZRTP globally you can override this on a per channel basis