<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="MSHTML 6.00.2900.3243" name="GENERATOR">
<style></style>
</head>
<body bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I am using Asterisk-1.4.11 version to make outbound calls and deliver the swift text to audio.
</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">My functionality is as for example i make this text to audio deliver the person called.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Eg. swift -o /tmp/test.wav -p audio/channels=1,audio/sampling-rate=8000 "Press 1 to confirm. Press 3 to cancel."</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">extension.conf dialplan:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" color="#800000" size="2">[dialout]</font></div>
<div><font face="Arial" size="2"><font color="#800000">exten => outbound-handler,1,Dial(</font><a href="mailto:SIP/${CallInitiate_phonenumber}@proxy2.bandtel.com,60,gM(outbound-connect^agi://10.1.1.68/ivr/speak^${CallInitiate_hashdata}^${MACHINE_STATUS_UNKNOWN"><font color="#800000">SIP/102,60,gM(outbound-connect^agi://10.1.1.68/ivr/speak^${CallInitiate_hashdata</font></a><font color="#800000">}))</font></font></div>
<div><font face="Arial" color="#800000" size="2"></font> </div>
<div><font face="Arial" color="#800000" size="2">[macro-outbound-connect]<br>
exten => s,1,Answer()</font></div>
<div><font face="Arial" color="#800000" size="2">exten => s,2,System(swift -o /tmp/test.wav -p audio/channels=1,audio/sampling-rate=8000 "Press 1 to confirm. Press 3 to cancel.")</font></div>
<div><font face="Arial" color="#800000" size="2">exten => s,3,Background(/tmp/test)</font></div>
<div><font face="Arial" color="#800000" size="2">exten => s,4,Hangup</font></div>
<div><font face="Arial" color="#800000" size="2"></font> </div>
<div><font face="Arial" color="#800000" size="2">exten => 1,1,Playback(thanks)</font></div>
<div><font face="Arial" color="#800000" size="2">exten => 2,1,Playback(bye)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Here in this, the call is connected and answered the control transfer to macro context. One way i can interrupt the text before it completes the text is by using 'Background (/tmp/test)' to play the audio.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">When iam in the middle of the audio if i press 1 before it completes the entire text, the control should go to 'exten => 1,1,Playback(thanks)'. But in macro the 'Background' doesnt seem to work. It works fine outside macro context.</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">When i use the Asterisk cmd GoTo(new_context,extn,priority) inside macro, I get a message 'channel jumping out of macro "outbound-connect"' waits for a minute and hungs up, the control doesnt go to new_context.</font></div>
<div> </div>
<div><font face="Arial" size="2">Does anyone have any ideas i can work it out. How can i have the Asterisk cmd Background inside macro? or how to execute the GoTo command?</font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks and appreciate your response.</font></div>
<div>
<p><font size="2"><font face="Arial">Regards,</font></font><br>
<b><strong><font size="2"><font face="Arial">Naveen.Palani</font></font></strong></b>
<br>
<br>
</p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="-2">“Quinnox, a global IT services company prides itself on its SEI-CMM Level 5, ISO‑9001:2000 assessed delivery processes and provides solutions in areas of E-Business, ERP, Application Management Services, and EAI to
customers in BFSI, Manufacturing, Retail, Telecom and Healthcare sector, powered by our Global Delivery Model.”<br>
<br>
This e-mail and any attached files are confidential, proprietary, and may also be legally privileged information, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient of this e-mail,
please send it back to the person who sent it to you and delete the e-mail and any attached files and destroy any copies of it; you may call us immediately at + 91 22 2829 0100 or email us at systems@quinnox.com<br>
<br>
Quinnox Consultancy Services and/or any of its sister companies owns no responsibility for the views presented in the e-mail and any attached files unless the sender mentions so, with due authority of Quinnox Consultancy Services.<br>
<br>
Unauthorized reading, reproduction, publication, use, dissemination, forwarding, printing or copying of this e-mail and its attachments is prohibited.<br>
We have checked this message for any known viruses; however we decline any liability, in case of any damage caused by a non-detected virus.<br>
<br>
For more details about our company, visit http://www.Quinnox.com<br>
</font>
</body>
</html>