]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Submitting a fix for Issue 8016. Added a check to make sure that greetings get stored...
authorMark Michelson <mmichelson@digium.com>
Thu, 7 Jun 2007 19:47:42 +0000 (19:47 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 7 Jun 2007 19:47:42 +0000 (19:47 +0000)
(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/branches/1.4@68198 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 4e24114c3f6c1e1b73bef3fc13a5db4ba9bfd920..23c3bd253f90e291a36237974be5f7edd6f8dc00 100644 (file)
@@ -8067,8 +8067,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", chan->language, "");
-                               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;
                        }