aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-19 16:03:33 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-19 16:03:33 +0000
commitb79c30c466a5b42618ff8c3487e02b8ac232c3e3 (patch)
treeb3f3391ce8d03d1758277191dd5d19b7d980049e /apps/app_voicemail.c
parent84406ee9d6610d44efc7a12d6043a114c346a57d (diff)
When forwarding messages use the context that the active voicemail user was found in. (issue #7010)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@28651 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 214c7aff3..b595944f2 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -5310,7 +5310,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
case '5': /* Leave VoiceMail */
if (ast_test_flag(vmu, VM_SVMAIL)) {
- cmd = forward_message(chan, context, vms.curdir, vms.curmsg, vmu, vmfmts, 1, record_gain);
+ cmd = forward_message(chan, vmu->context, vms.curdir, vms.curmsg, vmu, vmfmts, 1, record_gain);
if (cmd == ERROR_LOCK_PATH) {
res = cmd;
goto out;
@@ -5391,7 +5391,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
case '8':
if (vms.lastmsg > -1) {
- cmd = forward_message(chan, context, vms.curdir, vms.curmsg, vmu, vmfmts, 0, record_gain);
+ cmd = forward_message(chan, vmu->context, vms.curdir, vms.curmsg, vmu, vmfmts, 0, record_gain);
if (cmd == ERROR_LOCK_PATH) {
res = cmd;
goto out;