From: Sean Bright Date: Fri, 3 Jan 2020 16:20:29 +0000 (-0500) Subject: res_agi: Improve GET FULL VARIABLE documentation X-Git-Tag: 13.31.0-rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d252feab60fcf6fca10502c6a33eacb45277957;p=thirdparty%2Fasterisk.git res_agi: Improve GET FULL VARIABLE documentation ASTERISK-28673 #close Reported by: Jonathan Harris Change-Id: I591afdec669622bfa19243aabec31b579652c92f --- diff --git a/res/res_agi.c b/res/res_agi.c index 270c26942f..2a03c4954d 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -325,15 +325,21 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Evaluates a channel expression - - + + - Returns 0 if variablename is not set - or channel does not exist. Returns 1 if variablename - is set and returns the variable in parenthesis. Understands complex variable names and builtin - variables, unlike GET VARIABLE. - Example return code: 200 result=1 (testvariable) + Evaluates the given expression against the + channel specified by channelname, or the current + channel if channelname is not provided. + Unlike GET VARIABLE, the expression is + processed in a manner similar to dialplan evaluation, allowing complex + and built-in variables to be accessed, e.g. The time is + ${EPOCH} + Returns 0 if no channel matching + channelname exists, 1 + otherwise. + Example return code: 200 result=1 (The time is 1578493800) get variable