diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 16:59:13 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 16:59:13 +0000 |
commit | 591c1b6c739087d43a5837f816f7f268fdd5ba81 (patch) | |
tree | 2c29f79dcfc5ff8501efd1d0c806d3199b37fae7 /apps | |
parent | 10872f0f2e433a38461603838eec5a22a26da284 (diff) |
Merged revisions 32605 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r32605 | tilghman | 2006-06-06 11:55:23 -0500 (Tue, 06 Jun 2006) | 2 lines
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/trunk@32606 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 cb28fa8d0..f472e3030 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2625,7 +2625,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); |