Hi,
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 !

BR
Sammy


On Mon, Aug 27, 2012 at 9:47 AM, Pip Live <itispip-qq@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@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org