[Freeswitch-users] Multiple inbound numbers on a registered trunk

Stanislav Sinyagin ssinyagin at gmail.com
Mon May 2 06:11:01 MSD 2016

You receive a channel variable for every SIP header, and it shouldn't be a
problem to build a regular expression to extract the dialed number from
Diversion string.

You can also call "info" application at the beginning of the dialplan and
see all the variables that are available.

On May 1, 2016 20:30, "Joseph Waite" <joelists at tm.net.uk> wrote:

> Hi Guys
> We have a Freeswitch based FusionPBX setup which registers to our main SIP
> Switch with Registering trunks.
> Outbound Calls work fine, however I’m having issues with using multiple
> inbound numbers.
> If I setup a destination with the username of the trunk then all calls
> received on the trunk goto that destination.
> If I setup each DID on its own then calls fails.
> In the invite I see To: <sip:trunkuser at providerip:5080>
> I see the DID dialled in the following in the SIP message
> Diversion: numberdialed
> <tel:numberdialed>;reason=unknown;counter=1;privacy=off
> Is there a setting I can add somewhere to the trunk config to tell it to
> use the value in Diversion?
> Any help greatly appreciated.
> Regards
> Joseph Waite
> _________________________________________________________________________
> 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/20160502/c0be4f57/attachment.html 

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