http://lists.freeswitch.org/pipermail/freeswitch-users/2010-March/055508.html

Hmm, gateways on the wiki should be cleaned up.. I couldn't find it on the wiki, only via google.

-Avi


On Tue, Dec 6, 2011 at 12:45 AM, Michael Collins <msc@freeswitch.org> wrote:
Try adding one of these to the dialplan that handles inbound calls:

<action application="info"/>

Then, watch the console while an inbound comes in and you'll see quite a lot of information. Anything in that info dump is available to you for "figuring out" what's going on. If you have any questions then drop that info output to a pastebin and give us the URL here.

-MC


On Mon, Dec 5, 2011 at 2:02 PM, Jort Bloem <jort.bloem@btg.co.nz> wrote:
Hi all,

I have a setup with several gateways coming in on one profile. The
Realms, unfortunately, are by DNS, and move from time to time.

Is there any way to identify, in the dialplan, which gateway the call
comes from, for incoming calls?

I know I can get the ip address, but the ip address is subject to change.

I know that the trunk provider can set various things, but I don't have
control of the far end of the trunk.

If there is a way to set variables on a per-gateway (NOT per-profile)
basis, that would be perfect.

"RTFM" gladly accepted with a hint about which part of which FM to R.

--
Jaybee-


_________________________________________________________________________
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


_________________________________________________________________________
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