[Freeswitch-users] How to know inbound call arrive from which gateway?

SamyGo govoiper at gmail.com
Mon Aug 27 14:54:34 MSD 2012

What you can do easily is just change the context of each gateway and then
in that dialplan code append a prefix to the destination_number received.
i.e save destination_number in another variable and append the desired
prefix to that variable. Use the new variable anywhere in your dialplan as
you want !


On Mon, Aug 27, 2012 at 9:47 AM, Pip Live <itispip-qq at hotmail.com> wrote:

> Sorry this maybe a very simple question but I checked Wiki/Dialplan
> without finding an answer.
> How can I know inbound call arrive at which sofia gateway in dialplan? My
> purpose is to add a prefix to all inbound call from a certain gateway. I
> cannot use the "destination_number" built_in variable for this purpose, as
> in my case DID bind to a specific gateway hardware is often changing. Is
> that another varialbe to be used, eg. a gateway name etc?
> /Alex
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20120827/55e92513/attachment.html 

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