[<<][asterisk][>>][..]
Sat Feb 19 14:48:32 EST 2011

Router public IP (i.e. for asterisk)

Place this script in /www/cgi-bin/public_ip:
ps
    #!/bin/sh
    ifconfig eth0.1 | grep 'inet addr' | sed 's/:/ /' | awk '{print $3}'

Then the contents is accessable as

    wget http://fred/cgi-bin/public_ip -q -O -



[Reply][About]
[<<][asterisk][>>][..]