I use
tail -F /var/log/asterisk/full|while read LINE;do [[ $LINE ~= 911@{yourtrunkname} ]] && echo "911 called $LINE"|mail -s "9211 call" [email protected];done
I use
tail -F /var/log/asterisk/full|while read LINE;do [[ $LINE ~= 911@{yourtrunkname} ]] && echo "911 called $LINE"|mail -s "9211 call" [email protected];done