[Freeswitch-users] Routing inbound calls to extentions with did intact

Ian Halliday ihalliday at ndevix.com
Wed Aug 22 18:52:17 MSD 2012


Hello All,

I use freeswitch to route inbound calls to some of the PBX's we host, and I
use the following method (Below) to do so. It's been working great (20,000
calls in the first month without a problem), but I wanted to get a second
opinion to see if there was a better way to do such a thing (keeping the DID
intact). Any help would be appreciated. (I used an example DID and extention)

<extension name="setdid">
<condition field="destination_number" expression="^setdid$">
<action application="set" data="dialed_ext=${did}"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="disable_q850_reason=true"/>
<action application="bridge"
data="sofia/internal/${did}${regex(${sofia_contact(${user})}|^[^\@]+(.*)|%1)}"/>
</condition>
</extension>

<extension name="13125551234">
<condition field="destination_number" expression="^13125551234$">
<action application="set" data="user=user1002"/>
<action application="set" data="did=${destination_number}"/>
<action application="execute_extension" data="setdid"/>
</condition>
</extension>

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120822/612de56a/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list