[Freeswitch-users] Fw: Freeswitch dialplan issue

Nick Zaitsev nick.zaitsev at mail.ru
Wed Aug 20 22:51:36 MSD 2014


 
Yes,the first condition is mathcing.

From: Steven Ayre 
Sent: Wednesday, August 20, 2014 6:03 PM
To: FreeSWITCH Users Help 
Subject: Re: [Freeswitch-users] Freeswitch dialplan issue

Is the first condition matching?



On 20 August 2014 13:20, Nick Zaitsev <nick.zaitsev at mail.ru> wrote:



  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/${mailto:ext%7D at 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


  _________________________________________________________________________
  Professional FreeSWITCH Consulting Services:
  consulting at freeswitch.org
  http://www.freeswitchsolutions.com

  Official FreeSWITCH Sites
  http://www.freeswitch.org
  http://confluence.freeswitch.org
  http://www.cluecon.com

  
  

  FreeSWITCH-users mailing list
  FreeSWITCH-users at lists.freeswitch.org
  http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
  UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
  http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140820/107e581e/attachment.html 


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