On Fri, Mar 23, 2012 at 6:04 AM, Miha
<miha@softnet.si>
wrote:
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org