[Home]

Summary:ASTERISK-02820: [patch] GET OPTION in AGI
Reporter:Clod Patry (junky)Labels:
Date Opened:2004-11-15 16:55:36.000-0600Date Closed:2008-01-15 15:13:55.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) getoption.diff.txt
Description:This patch is to continue the bug ASTERISK-2742776. After some discussions with Mark, he wants a new AGI command named GET OPTION for the same thing as the STREAM FILE with the timeout.

****** ADDITIONAL INFORMATION ******

So that AGI application usage is really similar to the STREAM FILE:
Usage: GET OPTION <filename> <escape_digits> [timeout].

If you don't set a timeout, it's gonna takes the chan->pbx->dtimeout. That value is set to 5 seconds by default. If you don't want that value, just set your own timeout (in milliseconds).

So GET OPTION will always return the numeric value(ASCII) of the DTMF pressed if it's in the escape digits list. If not, it will return 0.

The timeout with the STREAM FILE allows a continue stream of filename when presssing a non-valid DTMF (not in escape digits list) during the stream plus a time for the user can press a key.

Comments:By: Mark Spencer (markster) 2004-11-15 22:36:49.000-0600

Added in CVS, thanks!

By: Russell Bryant (russell) 2004-11-16 08:15:07.000-0600

Remember to mention your disclaimer when you submit a patch for additional karma!

Thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:13:55.000-0600

Repository: asterisk
Revision: 4261

U   trunk/res/res_agi.c

------------------------------------------------------------------------
r4261 | markster | 2008-01-15 15:13:54 -0600 (Tue, 15 Jan 2008) | 2 lines

Add get option command (bug ASTERISK-2820, thanks junky!)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4261