]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 68198 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 7 Jun 2007 19:50:29 +0000 (19:50 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 7 Jun 2007 19:50:29 +0000 (19:50 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r68198 | mmichelson | 2007-06-07 14:47:42 -0500 (Thu, 07 Jun 2007) | 5 lines

Submitting a fix for Issue 8016. Added a check to make sure that greetings get stored properly.
(Issue 8016, reported by edhorton, patched by alamantia with modification by me. Thanks to Jason Parker
for the advice on this).

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68200 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 750bc5a414d6584294dc0ae99a04e1bba4d571f3..7943cf072e7e34ceaef26a1a008766488bddff0b 100644 (file)
@@ -8570,8 +8570,11 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
                                if (option_verbose > 2)
                                        ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n");
                                ast_stream_and_wait(chan, "vm-msgsaved", "");
-                               STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms);
-                               DISPOSE(recordfile, -1);
+                               if (!outsidecaller)
+                               {
+                                       STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms);
+                                       DISPOSE(recordfile, -1);
+                               }
                                cmd = 't';
                                return res;
                        }