]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
adding some stuff to defaults for zrtp
authorBrian West <brian@freeswitch.org>
Mon, 22 Jun 2009 15:08:19 +0000 (15:08 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 22 Jun 2009 15:08:19 +0000 (15:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13891 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml
conf/dialplan/features.xml

index eb0a1a8f3e43005bedc6eaf16491279d7467e784..5806ceef63f167f7113d506c711fbcdda3f4d1b5 100644 (file)
       </condition>
     </extension>
 
+    <!-- install zrtp_agent.lua into scripts (ZRTP == 9787) -->
+    <extension name="tone_stream">
+      <condition field="destination_number" expression="^9787$">
+       <action application="answer"/>
+       <action application="lua" data="zrtp_agent.lua"/>
+      </condition>
+    </extension>
+
     <!--
        You will no longer hear the bong tone.  The wav file is playing stating the call is secure.
        The file will not play unless you have both TLS and SRTP active.
        <action application="answer"/>
        <action application="execute_extension" data="is_secure XML features"/>
        <action application="playback" data="$${hold_music}"/>
-       <!-- This really should be an IVR for zrtp enrollment but this is just a demo-->
-       <anti-action application="set" data="zrtp_enrollment=true"/>
+       <anti-action application="set" data="zrtp_secure_media=true"/>
        <anti-action application="answer"/>
+       <anti-action application="playback" data="silence_stream://2000"/>
+       <anti-action application="execute_extension" data="is_zrtp_secure XML features"/>
        <anti-action application="playback" data="$${hold_music}"/>
       </condition>
     </extension>
index 8a6626e596e93fb16200a22570c39d51cce8625d..11d80319408a15b805ade2f271bdf63ed091d387 100644 (file)
       </condition>
     </extension>
 
+    <extension name="is_zrtp_secure">
+      <condition field="${zrtp_secure_media_confirmed}" expression="^true$">
+       <action application="sleep" data="1000"/>
+       <action application="playback" data="misc/call_secured.wav"/>
+       <anti-action application="eval" data="not_secure"/>
+      </condition>
+    </extension>
+
     <extension name="is_secure">
       <!-- Only Truly consider it secure if its TLS and SRTP --> 
       <condition field="${sip_via_protocol}" expression="tls"/>