From e9ae7a8be134f1d803bb72a4be7c9d541f639d9e Mon Sep 17 00:00:00 2001
From: Josh Roberson <josh@asteriasgi.com>
Date: Sun, 20 Nov 2005 05:51:33 +0000
Subject: [PATCH] issue #5774

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 ChangeLog            | 2 ++
 apps/app_voicemail.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 63c7ab5dfc..4987af501c 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-11-20  Josh Roberson <josh@asteriasgi.com>
 
+	* apps/app_voicemail.c: Make sure we're copying the read digits when calling voicemail without a box. (issue #5774)
+
 	* apps/app_md5.c: Fix conditional jump option.
 
 	* apps/app_controlplayback.c: Fix conditional jump option.
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 487d6e9fec..e9d13dfa62 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -5532,6 +5532,7 @@ static int vm_exec(struct ast_channel *chan, void *data)
 			LOCAL_USER_REMOVE(u);
 			return 0;
 		}	
+		argv[0] = ast_strdupa(tmp);
 	}
 
 	res = leave_voicemail(chan, argv[0], &leave_options);
-- 
GitLab