[Asterisk-code-review] res_agi: Improve GET FULL VARIABLE documentation (asterisk[master])
Friendly Automation
asteriskteam at digium.com
Tue Jan 7 09:53:12 CST 2020
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13544 )
Change subject: res_agi: Improve GET FULL VARIABLE documentation
......................................................................
res_agi: Improve GET FULL VARIABLE documentation
ASTERISK-28673 #close
Reported by: Jonathan Harris
Change-Id: I591afdec669622bfa19243aabec31b579652c92f
---
M res/res_agi.c
1 file changed, 13 insertions(+), 7 deletions(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/res/res_agi.c b/res/res_agi.c
index 0e2c76f..77ba226 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -323,15 +323,21 @@
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>
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13544
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I591afdec669622bfa19243aabec31b579652c92f
Gerrit-Change-Number: 13544
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200107/c15e3bcf/attachment-0001.html>
More information about the asterisk-code-review
mailing list