echo
echo "asttest - logs warnings to /temp"
echo
echo "Starting asterisk..."
echo
cd /var/spool/asterisk/outgoing
rm -f *.call
rm -f /temp
asterisk -nvvv |egrep 'WARN|completed|through' >/temp &
echo
echo -n "Now waiting a few seconds for PRI's to come up...."
sleep 5
echo "Ready."
echo


