Well, in a roundabout way you can, by using &quot;sofia_contact&quot; API and regex at the fs_cli. Here&#39;s a quick session I just did:<div><br></div><div><div>freeswitch@internal&gt; sofia_contact <a href="mailto:1002@10.15.0.94">1002@10.15.0.94</a></div>
<div>sofia/internal/sip:1002@10.15.0.136:61524;rinstance=f832369f26387993;transport=udp;fs_nat=yes</div><div>freeswitch@internal&gt; regex sofia/internal/sip:1002@10.15.0.136:61524;rinstance=f832369f26387993;transport=udp;fs_nat=yes|(\d+\.\d+\.\d+\.\d+)|$1</div>
<div>10.15.0.136</div><div>freeswitch@internal&gt; </div><div><br></div><div>My user&#39;s IP addr is 10.15.0.136. Your challenge, I assume, is knowing when to update the gateway. If you know that then you can launch the above commands via a shell script using fs_cli -x. Just be sure to use all the proper escape sequences for passing all those parens, pipes and backslashes. :)</div>
<div><br></div><div>-MC</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 6:05 PM, xduvox <span dir="ltr">&lt;<a href="mailto:xduvox@gmail.com">xduvox@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;"><br>
Hello Steven for reply<br>
I have done the &lt;gateways&gt; configuration and it works perfectly, my problem<br>
is that the public ip of mi gateway changes almost every two weeks, and i<br>
have to replace the ip of the gateway&#39;s configuration file.<br>
<br>
i have and user or extension in my gateway that registers to FS so<br>
i can know the new ip by sofia status profile internal and see the ip of the<br>
user that is registered to FS<br>
<br>
what i am wondering to know is if is there a way to use the ip of the<br>
registered user to configure the gateway and not have to rewrite the ip in<br>
the configuration file of the gateway each time ip changes?<br>
<br>
Another problem is that i can not use <a href="http://www.dyndns.org" target="_blank">www.dyndns.org</a> because the gateway<br>
does not have that ability<br>
<br>
<br>
thanks in advance!<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/gateway-without-static-IP-tp5851640p5854523.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/gateway-without-static-IP-tp5851640p5854523.html</a><br>

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