[Freeswitch-users] FW: how to dial from different gateways according prefix numbers?

netandtech bill_vus at hotmail.com
Wed Dec 18 18:27:40 MSK 2013


 

 

From: netandtech [mailto:bill_vus at hotmail.com] 
Sent: Wednesday, December 18, 2013 5:27 PM
To: freeswitch
Subject: how to dial from different gateways according prefix numbers?

 

The following is the extension number that I  use in the default.xml

What I want to achieve is to 

Route the calls for landlines to different gateways and calls to mobiles
from another gateway.

 

 

<extension name="1002">

  

                 

     <!--  <action application="set"
data="effective_caller_id_number=2109829846"/>-->

      <!-- If your provider does not provide ringback (180 or 183) you may
simulate

        ringback by uncommenting the following line. -->

     

                  <condition field="destination_number"
expression="^69(\d+)$">

                                <action application="transfer"
data="sofia/gateway/myvoip/$0"/>

                </condition>

     

                  <condition field="destination_number"
expression="^22810(\d+)$"/>

                  

                   <action application="transfer"
data="sofia/gateway/voipdito2/$0"/>

                   

                                 

                                 

                  

                  </extension>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131218/6c8decbd/attachment.html 


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