I was able to do this using combination of call files and DISA.
exten = s,1,NoOp(CallBack)
exten = s,2,Playback(goodbye)
exten = s,3,System(echo "${CALLERID(num)}" > /persistent/etc/NumberToCall.txt)
exten = s,4,System(/persistent/etc/CallBack.sh)
exten = s,5,Hangup
I created a shell script that will create the call file and pass to /var/spool/asterisk/outgoing and it works perfecty
#/bin/sh
# This will auto-dial the caller and initiate a DISA call
NumberToCall=`cat /persistent/etc/NumberToCall.txt`
echo "Channel: SIP/$NumberToCall\\nContext: voicemenu-custom-6\\nExtension: 1" > /persistent/staging/CallBack.call
## Pass to Asterisk for processing
mv /persistent/staging/CallBack.call /var/spool/asterisk/outgoing
## Clear Call Files
cat /dev/null > /persistent/etc/NumberToCall.txt
cat /dev/null > /persistent/staging/CallBack.call
|