From: Automerge script Date: Tue, 6 Jun 2006 17:05:29 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.10-netsec~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf462c3c78648d9a6d4ef6e548a628f9be58d42;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@32632 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b595944f2d..b61b54d625 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2601,7 +2601,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ if (duration < vmminmessage) { if (option_verbose > 2) ast_verbose( VERBOSE_PREFIX_3 "Recording was %d seconds long but needs to be at least %d - abandoning\n", duration, vmminmessage); - DELETE(dir,msgnum,fn); + ast_filedelete(tmptxtfile, NULL); + unlink(tmptxtfile); } else { fprintf(txt, "duration=%d\n", duration); fclose(txt);