Posted: Thu May 28, 2009 3:10 pm Post subject: [asterisk-dev] Ideas on starting a background "autoservice"
On Thu, 28 May 2009, Stephen Davies wrote:
Quote:
I have an application where I need to be able to start a file playing back
on a channel, but be able to continue with execution in my agi-script /
dialplan whilst the file plays. I will then stop the playback later.
The idea is to start a "please wait" type message on the channel but be able
to continue routing the call in the meantime and be able to immediately
interrupt and cancel the playback when we have something to do. Kind of
like a "ringing" but using a generator that plays back a file.
I do this with a multi-threaded AGI that authorizes credit card
transactions. I create a thread to play "Please wait while..." and then
process the authorization in the "foreground."
By the time the prompt finishes I usually have my authorization response
so the process appears instantaneous to the caller.
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
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