Re: [asterisk-users] Script to automatically update externip. Useful for a host with dynamic public IP

2012-02-06 Thread Klaverstyn, David C
Behalf Of Raj Mathur (??? ?) Sent: Tuesday, 7 February 2012 1:19 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Script to automatically update externip. Useful for a host with dynamic public IP On Monday 06 Feb 2012, John Cahill wrote: > logger

Re: [asterisk-users] Script to automatically update externip. Useful for a host with dynamic public IP

2012-02-06 Thread Raj Mathur (राज माथुर)
On Monday 06 Feb 2012, John Cahill wrote: > logger -s "checksetexternip.sh: External IP address > has changed, changing /etc/asterisk/sip_general_custom.conf" grep -v > "externip" /etc/asterisk/sip_general_custom.conf > > /etc/asterisk/sip_general_custom.conf.tmp echo "externip=$EXT

Re: [asterisk-users] Script to automatically update externip. Useful for a host with dynamic public IP

2012-02-06 Thread John Cahill
: [asterisk-users] Script to automatically update externip. Useful for a host with dynamic public IP #!/bin/bash # checksetexternip.sh # Author: John Cahill em...@johncahill.net # Licence: GPL v3 # Description: script that queries checkip.dyndns.com to find the server's external IP addres

[asterisk-users] Script to automatically update externip. Useful for a host with dynamic public IP

2012-02-06 Thread John Cahill
#!/bin/bash # checksetexternip.sh # Author: John Cahill em...@johncahill.net # Licence: GPL v3 # Description: script that queries checkip.dyndns.com to find the server's external IP address. Updates asterisk's externip value and does a sip reload if necessary. # Last modified 06/02/2012 is_ip(){