multiple condition and action bridge not working how to dial from different gateways according prefix numbers?
From: netandtech [mailto:bill_vus@hotmail.com] Sent: Wednesday, December 18, 2013 5:28 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] FW: how to dial from different gateways according prefix numbers? From: netandtech [mailto:bill_vus@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>
Try adding break="on-true" to this tag: <condition field="destination_number" expression="^69(\d+)$"> -- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
participants (2)
-
Andrew Cassidy
-
netandtech