Another method comes to mind similar to my last posted method, but for
*behind* a firewall if you have a static hostname but dynamic ip (lots of
ISP's do this):

traceroute -m1 my.statichostname.net | mail -s "My Asterisk IP address"
[EMAIL PROTECTED]

Yet another method is,  a lot of Linksys / SMC bluebox routers also display
the external IP in their little management web site that they have. You
could use this in a shell script as follows:

getmyexternalip.sh

rm -f /etc/myexternalip.txt
wget --cache=off --http-user=admin --http-passwd=admin
--output-document=/etc/myexternalip.txt http://192.168.1.1/status.html
grep "WAN IP Address" /etc/myexternalip.txt | mail -s "My Asterisk IP
address" [EMAIL PROTECTED]

Otherwise, DyDNS.org is the way to go. 

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to