LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-03-2012, 10:18 PM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
asterisk bounce call


I have a Atcom IP04 IP PABX that runs Asterisk 1.4.21.2 and two trunks configured. I wanted to implement a bounce calling. In a normal scenario, you call the trunk, IVR answers and ask you for the number you wish to call. The call will then hangup and the 1st trunk will call you and once you answered, it will call the number that you have input in the IVR and bridge the call. I know this is possible but I need to have an example of a working context and how to do it. Does anyone have any idea? Thanks.
 
Old 04-06-2012, 09:54 PM   #2
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
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
 
  


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
asterisk call out script - help understanding call files winairmvs Linux - Software 0 10-28-2010 04:52 PM
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
kill the live call in asterisk ravi Linux - General 0 05-07-2007 03:38 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 02:44 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