asterisk call out script - help understanding call files
Hello,
I am attempting to create a click to call program using call files, and I am a bit stumped. I would like to generate a call file that would call a local extension, when answered would initiate a call to the remote number specified. I have been able to successfully get a call file to call my local extension and play back a .wav file, and have it call out to my remote number and play the .wav file. I cannot seem to figure out how to connect the local and remote call together with the call file though. Here is a snippet of the call file that calls my local extension:
echo "Channel: Local/1234" >> $base/temp.call
echo "CallerID: \"Emergency Notification\"" >> $base/temp.call
echo "Application: Playback" >> $base/temp.call
echo "Data: wavfilename" >> $base/temp.call
cat $base/temp.call
chown nobody:root $base/temp.call
mv $base/temp.call /var/spool/asterisk/outgoing
Any help would be appreciated.
Thanks
|