[Freeswitch-users] Freeswitch dialplan issue

Nick Zaitsev nick.zaitsev at mail.ru
Wed Aug 20 16:20:02 MSD 2014



Good day to you.
I have strange issue.
I would like to set the ext in dialplan in that way:
if there is local registered ext in freeswitch fs should route the call there,else route the call outside, i wrote this in dialplan:
 
<extension name="fs3_outbound">
<condition field="destination_number" expression="^([123][012345]\d\d\d)$">
<action application="set" data="ext=$1"/>
<action application="set"data="domain_name=${domain}"/>
</condition>
<condition field="${sofia_contact(*/${ext}@${domain_name})}" expression="error/user_not_registered">
<action application="bridge" data="sofia/internal/${ext}@10.160.1.21"/>
<anti-action application="bridge" data="user/${ext}@${domain_name}"/>
</condition>
</extension>
But it seems,that anti-action is not match at all(
Thank you for your time,best regards.
-- 
Nick Zaitsev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140820/167bcadc/attachment.html 


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