From 60fd1322d795f51f027019dc77ce4e56324bc3ec Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 3 Jan 2020 11:20:29 -0500 Subject: [PATCH] res_agi: Improve GET FULL VARIABLE documentation ASTERISK-28673 #close Reported by: Jonathan Harris Change-Id: I591afdec669622bfa19243aabec31b579652c92f --- res/res_agi.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/res/res_agi.c b/res/res_agi.c index d88d5118b9..6f8815d01f 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 -- 2.47.2