VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
naveenp at quinnox.com Guest
|
Posted: Tue Jan 15, 2008 12:32 pm Post subject: [asterisk-users] Interrupt the swift text |
|
|
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 |
|
Back to top |
|
|
rjoffe at yahoo.com Guest
|
Posted: Tue Jan 15, 2008 1:33 pm Post subject: [asterisk-users] Interrupt the swift text |
|
|
On Tuesday 15 January 2008 12:32, Naveen Palani wrote:
Quote: | Eg. swift -o /tmp/test.wav -p audio/channels=1,audio/sampling-rate=8000
"Press 1 to confirm. Press 3 to cancel."
|
Naveen,
How about generating the wav files and storing them, then playing the wav's
from the call tree, rather then re-generating the TTS every time. These seem
to be static in nature.
Ron |
|
Back to top |
|
|
naveenp at quinnox.com Guest
|
Posted: Tue Jan 15, 2008 2:01 pm Post subject: [asterisk-users] Interrupt the swift text |
|
|
Steve/Ron,
I also did that. I created a wave file and stored in /tmp directory and then
use Background cmd inside macro. But it doesnt seem to work.
I saw from the forum to use Background with the context parameter set to the
macro context."
Used it in this way, suggest me if it is wrong:
exten => s,3,Background(/tmp/test|outbound-connect)
But still doesnt work. Please suggest me.
Regards,
Naveen
----- Original Message -----
From: "Ron Joffe" <rjoffe at yahoo.com>
To: <asterisk-users at lists.digium.com>
Sent: Tuesday, January 15, 2008 12:33 PM
Subject: Re: [asterisk-users] Interrupt the swift text
On Tuesday 15 January 2008 12:32, Naveen Palani wrote:
Quote: | Eg. swift -o /tmp/test.wav -p audio/channels=1,audio/sampling-rate=8000
"Press 1 to confirm. Press 3 to cancel."
|
Naveen,
How about generating the wav files and storing them, then playing the wav's
from the call tree, rather then re-generating the TTS every time. These seem
to be static in nature.
Ron
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
?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 |
|
Back to top |
|
|
sprior at geekster.com Guest
|
Posted: Tue Jan 15, 2008 2:08 pm Post subject: [asterisk-users] Interrupt the swift text |
|
|
Naveen Palani wrote:
Quote: | 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?
|
I have really started to wish for 2 new standard commands -
BackgroundApp and SpeechBackgroundApp to be added to Asterisk just for
this sort of situation.
Steve |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|