Well, in a roundabout way you can, by using "sofia_contact" API and regex at the fs_cli. Here's a quick session I just did: freeswitch@internal> sofia_contact 1002@10.15.0.94 sofia/internal/sip:1002@10.15.0.136:61524 ;rinstance=f832369f26387993;transport=udp;fs_nat=yes freeswitch@internal> regex sofia/internal/sip:1002@10.15.0.136:61524 ;rinstance=f832369f26387993;transport=udp;fs_nat=yes|(\d+\.\d+\.\d+\.\d+)|$1 10.15.0.136 freeswitch@internal> My user'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. :) -MC On Mon, Dec 20, 2010 at 6:05 PM, xduvox <xduvox@gmail.com> wrote:
Hello Steven for reply I have done the <gateways> configuration and it works perfectly, my problem is that the public ip of mi gateway changes almost every two weeks, and i have to replace the ip of the gateway's configuration file.
i have and user or extension in my gateway that registers to FS so i can know the new ip by sofia status profile internal and see the ip of the user that is registered to FS
what i am wondering to know is if is there a way to use the ip of the registered user to configure the gateway and not have to rewrite the ip in the configuration file of the gateway each time ip changes?
Another problem is that i can not use www.dyndns.org because the gateway does not have that ability
thanks in advance!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/gateway-without-static-IP-tp58... Sent from the freeswitch-users mailing list archive at Nabble.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