LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2010, 04:52 PM   #1
winairmvs
Member
 
Registered: Aug 2009
Posts: 42

Rep: Reputation: 16
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS-Asterisk- /var/spool/asterisk/monitor How to decipher who's call is who's? tananthulus Linux - Newbie 2 12-08-2009 04:50 AM
configuring conference call in Asterisk BurhanKhan Linux - Server 1 09-26-2008 05:37 AM
How can I script an autologin, automatically call kde(or simillar) and call an app aboaventura Slackware 8 02-03-2007 11:00 PM
asterisk configuration to make a call PC - PC through asterisk priya001 Linux - Server 0 11-08-2006 06:06 AM
PC - PC call through asterisk priya001 Linux - Server 0 11-06-2006 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration