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

Patrick Lists freeswitch-list at puzzled.xs4all.nl
Mon Aug 27 15:03:39 MSD 2012


On 27-08-12 06:47, Pip Live 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?

Until someone comes up with a better answer, have you tried running the 
info app on the incoming call? It gives a ton of info about the channel.

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_info

Regards,
Patrick




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