diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 17:05:29 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 17:05:29 +0000 |
commit | 92efb39167004107849a76246fcfe2ff6bb99165 (patch) | |
tree | 194ec145b263813a68f54575a9ebdaec3027a81e /apps | |
parent | a2042161df0c1fb6a5365117f6b26d8e5725cab3 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@32632 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b595944f2..b61b54d62 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); |