One of these threads might answer your question;<div><div><br></div><div><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2010-November/064860.html">http://lists.freeswitch.org/pipermail/freeswitch-users/2010-November/064860.html</a></div>
<div><a href="http://freeswitch-users.2379917.n2.nabble.com/Setting-gateway-username-dynamically-td6399430.html">http://freeswitch-users.2379917.n2.nabble.com/Setting-gateway-username-dynamically-td6399430.html</a></div><div>
<a href="http://marc.info/?l=freeswitch-users&amp;m=130159068314989&amp;w=2">http://marc.info/?l=freeswitch-users&amp;m=130159068314989&amp;w=2</a></div><div><br></div><div>You can also use mod_xml_curl perhaps with a simple PHP script to achieve your end goal as well.</div>
<div><br></div><div>As far as I&#39;m aware, there is no way to specify a &#39;dynamic&#39; URL in the gateway configuration (although strangely, it is possible in mod_xml_curl, with use-dynamic-url, as shown here <a href="http://jira.freeswitch.org/browse/FS-419">http://jira.freeswitch.org/browse/FS-419</a> - you could maybe put in a feature request?)</div>
<div><br></div><div>I could be wrong, there might very well be support for this, but I couldn&#39;t find any reference to it.</div><div><br></div><div>Hope this helps</div><div><br></div><div>Cal</div><br><div class="gmail_quote">
On Mon, Mar 25, 2013 at 3:23 PM, rdmitry <span dir="ltr">&lt;<a href="mailto:rdmitry0911@gmail.com" target="_blank">rdmitry0911@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">
Hi guys,<br>
<br>
I&#39;ve just faced with a problem of defining a dynamic gateway the same way as<br>
in asterisk sip.conf with &quot;host=dynamic&quot; configuration parameter. So the<br>
question is how to define a gateway to a host behind a nat where host ip and<br>
port become available only after registration of this host on freeswitch.<br>
<br>
Any idea would be very much appreciated, Dmitry<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/dynamic-gateway-declaration-in-freeswitch-Is-it-possible-tp7589006.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/dynamic-gateway-declaration-in-freeswitch-Is-it-possible-tp7589006.html</a><br>

Sent from the freeswitch-users mailing list archive at Nabble.com.<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>