Permalink
Browse files

FS-4807 clear up an example for people that don't want to bother with…

… learning how things work
  • Loading branch information...
1 parent 1e929e7 commit fec1046db2e464e1b543458b3d4c3a9da365966a @FreeSWITCH FreeSWITCH committed Nov 8, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 conf/vanilla/dialplan/default.xml
@@ -141,6 +141,18 @@
<!-- <action application="export" data="sip_secure_media=true"/> -->
</condition>
+ <!--
+ Since we have inbound-late-negotation on by default now the
+ above behavior isn't the same so you have to do one extra step.
+ -->
+ <condition field="${endpoint_disposition}" expression="^(DELAYED NEGOTIATION)"/>
+ <condition field="${switch_r_sdp}" expression="(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)" break="never">
+ <action application="set" data="sip_secure_media=true"/>
+ <!-- Offer SRTP on outbound legs if we have it on inbound. -->
+ <!-- <action application="export" data="sip_secure_media=true"/> -->
+ </condition>
+
+
<condition>
<action application="hash" data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/>
<action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/>

0 comments on commit fec1046

Please sign in to comment.