Try adding one of these to the dialplan that handles inbound calls:<div><br></div><div><action application="info"/></div><div><br></div><div>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.</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Mon, Dec 5, 2011 at 2:02 PM, Jort Bloem <span dir="ltr"><<a href="mailto:jort.bloem@btg.co.nz">jort.bloem@btg.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I have a setup with several gateways coming in on one profile. The<br>
Realms, unfortunately, are by DNS, and move from time to time.<br>
<br>
Is there any way to identify, in the dialplan, which gateway the call<br>
comes from, for incoming calls?<br>
<br>
I know I can get the ip address, but the ip address is subject to change.<br>
<br>
I know that the trunk provider can set various things, but I don't have<br>
control of the far end of the trunk.<br>
<br>
If there is a way to set variables on a per-gateway (NOT per-profile)<br>
basis, that would be perfect.<br>
<br>
"RTFM" gladly accepted with a hint about which part of which FM to R.<br>
<br>
--<br>
Jaybee-<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>