From: Mark Michelson Date: Mon, 18 Jun 2007 23:28:10 +0000 (+0000) Subject: Undoing my last commit. I misread the code before. X-Git-Tag: 1.6.0-beta1~3^2~2341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a434fa668bf3b98fde118cdb8f9ac2ce54d6732c;p=thirdparty%2Fasterisk.git Undoing my last commit. I misread the code before. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69809 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 9a53657866..9a1bca236f 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8597,9 +8597,10 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re /* Otherwise 1 is to save the existing message */ if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Saving message as is\n"); - if (!outsidecaller) { + if (!outsidecaller) ast_filerename(tempfile, recordfile, NULL); - ast_stream_and_wait(chan, "vm-msgsaved", ""); + ast_stream_and_wait(chan, "vm-msgsaved", ""); + if (!outsidecaller) { STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); DISPOSE(recordfile, -1); }