[Freeswitch-users] Break&condition

Miha miha at softnet.si
Fri Mar 23 16:04:10 MSK 2012


Hi,

In same extension a have multiple conditions. Problem is if the first 
condition is false, dialplan will go further as I have set on-true.
How can I prevent that dialplan will go after break="on-true" on second 
condition and will not go looking condition inside condition.

So if the variable mobilne is not set, in this dialplan FS will go 
looking to <condition field="destination_number" 
expression="^(051|041|031|030|040|070|071)(\d{6})|^(0038651|0038641|0038631|0038630|0038640|0038670|0038671)(\d{6})" 
break="on-true"> and reject call instead of goint to second condtion 
which is <condition field="${toll_allow}" expression="tuje"/>.

I hope I make it clear:D

<condition field="${toll_allow}" expression="mobilne"  break="on-true" />
<condition field="destination_number" 
expression="^(051|041|031|030|040|070|071)(\d{6})|^(0038651|0038641|0038631|0038630|0038640|0038670|0038671)(\d{6})" 
break="on-true">
<action application="respond" data="403"/>
</condition>



<condition field="${toll_allow}" expression="tuje"/>
<condition field="destination_number" expression="^00\d+">
<action application="respond" data="403"/>
</condition>


<condition field="${toll_allow}" expression="vroce"/>
<condition field="destination_number" 
expression="^(090)(\d{4})|^(090)(\d{6})">
<action application="respond" data="403"/>
</condition>


Regards and thank you for your help!

Miha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120323/9377023b/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list