From: Martin Pycko Date: Mon, 22 Dec 2003 18:22:21 +0000 (+0000) Subject: Don't distroy the original message when prepending and if prepending forward with... X-Git-Tag: 0.7.0~137 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bc570d449f634da11bf3ea3b52884457f4f43c7;p=thirdparty%2Fasterisk.git Don't distroy the original message when prepending and if prepending forward with the prepended message even if the hangup is received git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1875 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 68b8154678..cd688d55af 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1048,6 +1048,7 @@ static int play_and_prepend(struct ast_channel *chan, char *playfile, char *reco ast_verbose( VERBOSE_PREFIX_3 "User hung up\n"); res = -1; outmsg=1; +#if 0 /* delete all the prepend files */ for (x=0;x 1) { +#else + if (outmsg) { +#endif struct ast_frame *fr; for (x=0;x