#!/bin/bash
[ -z "$1" ] && echo "usage: $0 <number>" && exit 1

CALL=$(tempfile -s .call)

cat <<EOF >$CALL
Channel: SIP/12voip/$1
Application: Playback
Data: hello-world
EOF


chgrp asterisk $CALL
chmod 660 $CALL
mv $CALL /var/spool/asterisk/outgoing
