[Asterisk-Users] NAT and SIP.conf update.
razza
rjames31 at btopenworld.com
Tue Sep 13 11:27:35 MST 2005
Could you send me a copy of your script?
%<----- SNIP! ----->%
Wilson Pickett wrote:
What I did was to have the ip checker write a one line file called
"externip.conf" containing the line:
externip = nnn.nnn.nnn.nnn ; this is the new ip address
then in sip.conf,
#include "externip.conf" ; replace the externip= line in sip.conf with
this include
Now in your ip checker script (run every n minutes with crontab),check
the ip against an the last saved ip (in file "old_ip" for example) if
ips are the same, exit, nothing to do if different, write the
externip.conf file and
do a "sip reload" command
save the ip to the old_ip file
exit
%<----- SNIP! ----->%
More information about the asterisk-users
mailing list