From 2265686e335720eee5eaf188db70b0f117ca9060 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Mon, 18 Jun 2007 23:26:08 +0000 Subject: [PATCH] Cleaned up a section where there were two consecutive identical if statements. Combined the bodies of the two into one if. I blame svn merging for this. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69808 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 604f64e575..9a53657866 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -8597,10 +8597,9 @@ 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) - ast_filerename(tempfile, recordfile, NULL); - ast_stream_and_wait(chan, "vm-msgsaved", ""); if (!outsidecaller) { + ast_filerename(tempfile, recordfile, NULL); + ast_stream_and_wait(chan, "vm-msgsaved", ""); STORE(recordfile, vmu->mailbox, vmu->context, -1, chan, vmu, fmt, *duration, vms); DISPOSE(recordfile, -1); }