[asterisk-users] AGI: blocking script until playback complete

Eric Wieling EWieling at nyigc.com
Wed Feb 22 09:22:31 CST 2012


Are you reading STDIN to initialize your AGI?  If not Asterisk may ignore your AGI commands.  I recommend using one of the many AGI libs out there.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Chris Bagnall
Sent: Wednesday, February 22, 2012 10:20 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] AGI: blocking script until playback complete

On 22/2/12 2:50 pm, Zohair Raza wrote:
> Try passing escape character
> GET DATA $filename $timeout $max_digits $escape_character

Not sure I follow - according to the docs, there is no parameter $escape_character

The problem seems to be that GET DATA returns control to the script before the audio file has even played, let alone any DTMF tones have been entered. I would have expected script execution to be blocked until the result from GET DATA was available.

Kind regards,

Chris
--
This email is made from 100% recycled electrons

--
_____________________________________________________________________
-- 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



More information about the asterisk-users mailing list