Page 480 - Asterisk™: The Future of Telephony
P. 480
0
No channel, or variable not set
1 ( value )
Value is retrieved (and is included in parentheses)
GET OPTION
GET OPTION filename escape_digits [timeout]
Behaves the same as STREAM FILE, but has a timeout option (in seconds).
Return value:
value
ASCII value of digits received, in decimal
GET VARIABLE
GET VARIABLE variablename
If the variable is set, returns its value in parentheses. This command does not under-
stand complex variables or built-in variables; use the GET FULL VARIABLE command if
your application requires these types of variables.
Return values:
0
No channel, or variable not set
1 ( value )
Value is retrieved (and is included in parentheses)
HANGUP
HANGUP [channelname]
Hangs up the specified channel or, if no channel is given, the current channel.
Return values:
-1
Specified channel does not exist
1
Hangup was successful
452 | Appendix C: AGI Reference