get option

Usage: GET OPTION <filename> <escape_digits> [timeout]

Behaves similar to STREAM FILE but used with a timeout option.

Returns:
failure: 200 result=-1 endpos=0
failure on open: 200 result=0 endpos=0
success: 200 result=0 endpos=<offset>
digit pressed: 200 result=<digit> endpos=<offset>

<offset> is the stream position streaming stopped.
<digit> is the ascii code for the digit pressed.

Note that if you do not pass <timeout> there seems to be a default. Passing 0 however, works as expected (exactly like STREAM FILE).


Go back to Asterisk AGI
Usage: GET OPTION <filename> <escape_digits> [timeout]

Behaves similar to STREAM FILE but used with a timeout option.

Returns:
failure: 200 result=-1 endpos=0
failure on open: 200 result=0 endpos=0
success: 200 result=0 endpos=<offset>
digit pressed: 200 result=<digit> endpos=<offset>

<offset> is the stream position streaming stopped.
<digit> is the ascii code for the digit pressed.

Note that if you do not pass <timeout> there seems to be a default. Passing 0 however, works as expected (exactly like STREAM FILE).


Go back to Asterisk AGI
Created by: pinhole, Last modification: Wed 05 of Apr, 2006 (17:35 UTC) by negativeview
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+