Summary:ASTERISK-04318: [patch] Support for prompt playing in AGI WAIT_FOR_DIGIT cmd
Reporter:Andriy I Pylypenko (bamby)Labels:
Date Opened:2005-06-02 03:42:36Date Closed:2011-06-07 14:03:13
Versions:Frequency of
Environment:Attachments:( 0) patch-res::res_agi.c
Description:I'm porting some application to Asterisk AGI (FastAGI in my case). The application has features based on recognition keys including pound key (#) while playing some prompt. I found only one AGI command that can report pound key press - WAIT FOR DIGIT but it lacks ability of playing prompt while waiting. The GET DATA cmd can play prompt but has no ability to report '#' key. I added to the WAIT FOR DIGIT command second optional parameter - the prompt file. Please see the patch below.


The advantage of this patch is that it will not break any existing applications that already use the WAIT FOR DIGIT command.
Comments:By: Olle Johansson (oej) 2005-06-02 05:27:39

Disclaimer on file? Pls read the bug guide lines!

By: Olle Johansson (oej) 2005-06-02 05:29:13

Please produce patch for CVS head. We are not accepting any changes to the stable tree, only bug fixes. THank you!

By: Clod Patry (junky) 2005-06-02 06:49:47

I've created GET OPTION this.
debian*CLI> show agi get option
Usage: GET OPTION <filename> <escape_digits> [timeout]
       Behaves similar to STREAM FILE but used with a timeout option.

And it's only for 1 digit (like the STREAM FILE).

By: Andriy I Pylypenko (bamby) 2005-06-02 07:31:51

> I've created GET OPTION this.

We're using version 1.0.7 of Asterisk and this command ain't merged yet so I missed that. Ok I'll live with my patch till GET OPTION will be available in the stable release.

By: Michael Jerris (mikej) 2005-06-02 07:52:10

As this is a new feature, it will not be available in 1.0.x branch.

By: Clod Patry (junky) 2005-06-02 07:54:56

If you really want GET OPTION for now, to save you some AGI development time in the future, send me an email to cpatry AT gmail.com.