From 96286be0eef8e521b754b2fafab2a2cd6e04ab71 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Sun, 25 Sep 2005 03:49:22 +0000
Subject: [PATCH] Fix GetVar manager action result (bug #5275)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6641 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 UPGRADE.txt | 24 +++++++++++++++++-------
 manager.c   |  2 +-
 2 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/UPGRADE.txt b/UPGRADE.txt
index 17240db15c..5704da2304 100755
--- a/UPGRADE.txt
+++ b/UPGRADE.txt
@@ -164,10 +164,20 @@ chan_modem:
 MeetMe:
 
 * The conference application now allows users to increase/decrease their
-speaking volume and listening volume (independently of each other and other
-users); the 'admin' and 'user' menus have changed, and new sound files are
-included with this release. However, if a user calling in over a Zaptel channel
-that does NOT have hardware DTMF detection increases their speaking volume,
-it is likely they will no longer be able to enter/exit the menu or make
-any further adjustments, as the software DTMF detector will not be able to
-recognize the DTMF coming from their device.
+  speaking volume and listening volume (independently of each other and 
+  other users); the 'admin' and 'user' menus have changed, and new sound 
+  files are included with this release. However, if a user calling in 
+  over a Zaptel channel that does NOT have hardware DTMF detection 
+  increases their speaking volume, it is likely they will no longer be 
+  able to enter/exit the menu or make any further adjustments, as the  
+  software DTMF detector will not be able to recognize the DTMF coming 
+  from their device.
+
+GetVar Manager Action:
+
+* Previously, the behavior of the GetVar manager action reported the value
+  of a variable in the following manner:
+   > name: value
+  This has been changed to a manner similar to the SetVar action and is now
+   > Variable: name
+   > Value: value
diff --git a/manager.c b/manager.c
index 307cf84b10..568c23f646 100755
--- a/manager.c
+++ b/manager.c
@@ -704,7 +704,7 @@ static int action_getvar(struct mansession *s, struct message *m)
 	ast_mutex_unlock(&c->lock);
 	ast_mutex_lock(&s->lock);
 	ast_cli(s->fd, "Response: Success\r\n"
-		"%s: %s\r\n" ,varname,varval2);
+		"Variable: %s\r\nValue: %s\r\n" ,varname,varval2);
 	if (id && !ast_strlen_zero(id))
 		ast_cli(s->fd, "ActionID: %s\r\n",id);
 	ast_cli(s->fd, "\r\n");
-- 
GitLab