<div>Hello Mike and thanks for the reply.</div><div><br></div><div><span>Unfortunately sip_req_host only gives me the sip host. My setup is probably not quite usual, I have a multihome system with many gateways, each gateway name assigned to a unique id. The unique id is simply a random string identifying the gateway in the whole system. The unique id is also persisted in the DB, based on the id additional call processing takes place. My initial idea was to get the gateway name in the dialplan and pass it to an ESL app. But it really looks like it is not possible to retrieve the gateway name at all, sadly.</span></div>

<br clear="all">Hynek<br><br>
<br><br><div class="gmail_quote">On Tue, Jan 24, 2012 at 8:42 AM, Michael Lutz <span dir="ltr">&lt;<a href="mailto:mytemike72@gmail.com" target="_blank">mytemike72@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div bgcolor="#FFFFFF"><div>Hi Hynek,</div><div><br></div><div>{sip_req_host} should give your own gateway (local), and {network_addr} should give the remote gateway.</div><div><br></div><div>Otherwise writing a cdr and look will help you with this.</div>


<div><br></div><div>Regards,</div><div>Mike</div><div><br>Op 24 jan. 2012 om 08:27 heeft Hynek Cihlar &lt;<a href="mailto:hynek.cihlar@gmail.com" target="_blank">hynek.cihlar@gmail.com</a>&gt; het volgende geschreven:<br>


<br></div><div><div><div><span></span></div><blockquote type="cite"><div><div>In one of the examples on wiki I found ${sip_gateway}, but that doesn&#39;t seem to work. Also, there is ${sip_gateway_name}, but that works on outbound calls only.</div>


<br clear="all">Hynek<br><br>
<br><br><div class="gmail_quote">On Mon, Jan 23, 2012 at 7:03 PM, Hynek Cihlar <span dir="ltr">&lt;<a href="mailto:hynek.cihlar@gmail.com" target="_blank">hynek.cihlar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>Dear, is there a dialplan variable that would hold the gateway name an incoming call came through? Searching through the source code and wiki didn&#39;t yield any positive result.</div><div><br></div><div>Thanks!</div>




<span><font color="#888888">
<div><br></div>Hynek<br><br>
</font></span></blockquote></div><br>
</div></blockquote></div></div><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br>


<span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></span><br>


<span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></span><br>


<span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>


<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>


<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>
<br></blockquote></div><br>