[asterisk-users] Play audio and continue to next priority
beforeaudio ends...
Alejandro Mejía
noc at carmeltelecom.com
Mon Apr 9 15:54:15 MST 2007
Thanks Steve.
I'll try what you suggest.
Cheers!
-----Mensaje original-----
De: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] En nombre de Steve Edwards
Enviado el: Lunes, 09 de Abril de 2007 04:08 p.m.
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: Re: [asterisk-users] Play audio and continue to next priority
beforeaudio ends...
On Mon, 9 Apr 2007, Alejandro Mejma wrote:
> I would like to know how to playback an audio file to the caller, and
> while it's played asterisk to continue executing the next priorities
> on extensions.conf That's not the case when using "playback" command,
> because the next priority is executed until the audio file ends
> playing. I want to evaluate some variables while caller hears the
> audio file.
I solved this in my application (adult chat billed to a credit card) by
writing an AGI that created a thread to play the audio ("Please wait while
your card is being verified") while the AGI mainline queried the credit card
processor. Most of the time I get the cc response before the audio finishes
so the authorization appears to be instantaneous.
The "key" was that the mainline cannot interact with Asterisk (i.e.
"verbose" while the audio thread is executing.
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list