#!/bin/bash [ -z "$1" ] && echo "usage: $0 " && exit 1 CALL=$(tempfile -s .call) cat <$CALL Channel: SIP/12voip/$1 Application: Playback Data: hello-world EOF chgrp asterisk $CALL chmod 660 $CALL mv $CALL /var/spool/asterisk/outgoing