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