#!/opt/bin/sh

NUMBER=$1

sleep 10

echo ${NUMBER}

echo "Channel: PJSIP/${NUMBER}
CallerID: CallBack <1234567890>
MaxRetries: 1
RetryTime: 5
WaitTime: 30
Account: 802
Context: echo-test
Extension: 802
Priority: 1
Application: Playback
Data: /opt/share/asterisk/sounds/moh/manolo_camp-morning_coffee
AlwaysDelete: Yes" >/opt/var/spool/asterisk/outgoing/${NUMBER}

exit 0

