From 40a1b60cbd6b34d6abb86e6163fb2ac2b60c1865 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sun, 20 Nov 2005 23:51:58 +0000 Subject: [PATCH] issue #5774 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7153 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- ChangeLog | 2 ++ apps/app_voicemail.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7237e3e700..4708a95453 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-11-20 Russell Bryant + * apps/app_voicemail.c: Correct the use of a mailbox entered by the calling party instead of indicated as an argument to the Voicemail application. (issue #5774) + * apps/app_controlplayback.c: Fix logic in checking for success when jumping to priority n+101. * apps/app_md5.c: Fix logic in checking for success when jumping to priority n+101. diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 487d6e9fec..ecdc17bc57 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5531,7 +5531,8 @@ static int vm_exec(struct ast_channel *chan, void *data) if (ast_strlen_zero(tmp)) { LOCAL_USER_REMOVE(u); return 0; - } + } + argv[0] = ast_strdupa(tmp); } res = leave_voicemail(chan, argv[0], &leave_options);