[Freeswitch-users] Playing with conditions

Dmitry Mordovin d.mordovin at dwide.com
Tue Sep 1 12:56:08 MSD 2015


Hello

<section name="dialplan" description="Local call">
     <context name="public">
       <extension name="local_1">

     <condition field="destination_number" expression="^(\d{4})$">
       <action application="answer"/>

       <action application="play_and_get_digits" data="1 1 3 7000 # 
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav 
/invalid.wav foobar \d+"/>
       <action application="log" data="CRIT ${foobar}"/>

       <condition field="${foobar}" expression="1$">
             <action application="log" data="CRIT 
--------------1------------------"/>
             <anti-action application="log" data="CRIT --------------not 
1------------------"/>
       </condition>

       <action application="log" data="CRIT ---- last ${foobar}"/>
     </condition>

       </extension>
     </context>
   </section>

Why inner condition not works?



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list