diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 16:55:23 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 16:55:23 +0000 |
commit | 7c7a59692ea04ecee9804604f6dc8575e6871d50 (patch) | |
tree | 44cacb6eb4cb6bc2e3fecd222ddfe76bec49598e /apps | |
parent | ba9bad966635e2c73b42fba4fa08c0f2925f66f9 (diff) |
Bug 7287 - A too short voicemail with ODBC_STORAGE will cause the first voicemail to be deleted erroneously
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@32605 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); |