diff options
-rw-r--r-- | apps/app_voicemail.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 750bc5a41..7943cf072 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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; } |