Hi,
I am using Asterisk-1.4.11 version to make outbound calls and deliver the swift
text to audio.
My functionality is as for example i make this text to audio deliver the person
called.
Eg. swift -o /tmp/test.wav -p audio/channels=1,audio/sampling-rate=8000
"Press 1 to confirm. Press 3 to cancel."
extension.conf dialplan:
[dialout]
exten =>
outbound-handler,1,Dial(SIP/102,60,gM(outbound-connect^agi://10.1.1.68/ivr/speak^${CallInitiate_hashdata<mailto:SIP/${CallInitiate_phonenumber}@proxy2.bandtel.com,60,gM(outbound-connect^agi://10.1.1.68/ivr/speak^${CallInitiate_hashdata}^${MACHINE_STATUS_UNKNOWN>}))
[macro-outbound-connect]
exten => s,1,Answer()
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.")
exten => s,3,Background(/tmp/test)
exten => s,4,Hangup
exten => 1,1,Playback(thanks)
exten => 2,1,Playback(bye)
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.
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.
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.
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?
Thanks and appreciate your response.
Regards,
Naveen.Palani
________________________________
?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.?
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 at
quinnox.com
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.
Unauthorized reading, reproduction, publication, use, dissemination, forwarding,
printing or copying of this e-mail and its attachments is prohibited.
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.
For more details about our company, visit http://www.Quinnox.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20080115/969c96cc/attachment.htm