]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_agi: Improve GET FULL VARIABLE documentation
authorSean Bright <sean.bright@gmail.com>
Fri, 3 Jan 2020 16:20:29 +0000 (11:20 -0500)
committerSean Bright <sean.bright@gmail.com>
Fri, 3 Jan 2020 16:29:02 +0000 (10:29 -0600)
ASTERISK-28673 #close
Reported by: Jonathan Harris

Change-Id: I591afdec669622bfa19243aabec31b579652c92f

res/res_agi.c

index 0e2c76faff561f49abc6d547feb0c95ff8a5e0e1..77ba226e27eb655934882d81abef5d85cd1f16f3 100644 (file)
                        Evaluates a channel expression
                </synopsis>
                <syntax>
-                       <parameter name="variablename" required="true" />
-                       <parameter name="channel name" />
+                       <parameter name="expression" required="true" />
+                       <parameter name="channelname" />
                </syntax>
                <description>
-                       <para>Returns <literal>0</literal> if <replaceable>variablename</replaceable> is not set
-                       or channel does not exist. Returns <literal>1</literal> if <replaceable>variablename</replaceable>
-                       is set and returns the variable in parenthesis. Understands complex variable names and builtin
-                       variables, unlike GET VARIABLE.</para>
-                       <para>Example return code: 200 result=1 (testvariable)</para>
+                       <para>Evaluates the given <replaceable>expression</replaceable> against the
+                       channel specified by <replaceable>channelname</replaceable>, or the current
+                       channel if <replaceable>channelname</replaceable> is not provided.</para>
+                       <para>Unlike GET VARIABLE, the <replaceable>expression</replaceable> is
+                       processed in a manner similar to dialplan evaluation, allowing complex
+                       and built-in variables to be accessed, e.g. <literal>The time is
+                       ${EPOCH}</literal></para>
+                       <para>Returns <literal>0</literal> if no channel matching
+                       <replaceable>channelname</replaceable> exists, <literal>1</literal>
+                       otherwise.</para>
+                       <para>Example return code: 200 result=1 (The time is 1578493800)</para>
                </description>
                <see-also>
                        <ref type="agi">get variable</ref>