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: [email protected] 
[mailto:[email protected]] On Behalf Of Chris Bagnall
Sent: Wednesday, February 22, 2012 10:20 AM
To: [email protected]
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

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

Reply via email to