#!/bin/sh # updated to use hamvoip.org for search - WA3DSP 8/2016 # updated to use public-ip-address.gsm - KB4FXC 9/29/2016 if [ -z "$1" ]; then echo "No node number supplied - saypublicip.sh " exit 1 fi ip=$(curl -s http://myip.hamvoip.org/ 2>&1) asterisk -rx "rpt localplay $1 /etc/asterisk/local/public-ip-address" sleep 5 /etc/asterisk/local/speaktext.sh "$ip" "$1"