On Fri, 3 Feb 2012, Yaroslav Panych wrote:
What exactly commands I should invoke in AGI instead of <start music> and
<stop music> ? STREAM FILE returns only after file ends, this is not what I
want.
On Fri, 3 Feb 2012, Steve Edwards wrote:
Execute 'stream file' in a separate thread.
I use this when processing credit card authorizations. My dialplan
executes my AGI (auth-card) with the card number and expiration date in
channel variables.
The AGI creates a 'background' thread that plays 'Please wait while we
authorize your card -- and get ready for a good time!' while the
'mainline' code ships the card number and expiration date off to the card
processor.
We almost always get a response (authorized or declined) back before the
background thread finishes so the 'user experience' is that credit card
authorizations are 'instantaneous.'
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users