]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When forwarding messages use the context that the active voicemail user was found...
authorJoshua Colp <jcolp@digium.com>
Fri, 19 May 2006 16:03:33 +0000 (16:03 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 19 May 2006 16:03:33 +0000 (16:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28651 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 214c7aff3c1f2987bca427dd59ad71c6d9e92902..b595944f2dd1aa7363307057ca7800001503a818 100644 (file)
@@ -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;