From 1dce73d278a8378070e54262963eefd8cebe56ab Mon Sep 17 00:00:00 2001 From: Rusty Newton Date: Mon, 4 Aug 2014 19:47:06 +0000 Subject: [PATCH] Manager - Improve documentation for manager commands Getvar and Setvar. The documentation for these commands did not make it clear that they could accept expressions and functions. Modified to make this clear, but tried not to be overly explicit. ASTERISK-21178 #close Reported by: Rusty Newton Tested by: Rusty Newton Review: https://reviewboard.asterisk.org/r/3854 ........ Merged revisions 419942 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 419943 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 419944 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419945 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/manager.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/main/manager.c b/main/manager.c index 50f74db658..7fa083ca9b 100644 --- a/main/manager.c +++ b/main/manager.c @@ -281,7 +281,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") - Set a channel variable. + Sets a channel variable or function value. @@ -289,22 +289,23 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Channel to set variable for. - Variable name. + Variable name, function or expression. - Variable value. + Variable or function value. - Set a global or local channel variable. + This command can be used to set the value of channel variables or dialplan + functions. - If a channel name is not provided then the variable is global. + If a channel name is not provided then the variable is considered global. - Gets a channel variable. + Gets a channel variable or function value. @@ -312,13 +313,13 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") Channel to read variable from. - Variable name. + Variable name, function or expression. - Get the value of a global or local channel variable. + Get the value of a channel variable or function return. - If a channel name is not provided then the variable is global. + If a channel name is not provided then the variable is considered global.