From: Sean Bright Date: Fri, 3 Jan 2020 16:20:29 +0000 (-0500) Subject: res_agi: Improve GET FULL VARIABLE documentation X-Git-Tag: 17.2.0-rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7038c8676e3dd794786779bb8218fc026825277e;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 0e2c76faff..77ba226e27 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -323,15 +323,21 @@ 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