[asterisk-commits] file: branch 1.4 r85242 - /branches/1.4/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 10 09:14:57 CDT 2007
Author: file
Date: Wed Oct 10 09:14:56 2007
New Revision: 85242
URL: http://svn.digium.com/view/asterisk?view=rev&rev=85242
Log:
Close voicemail message description file if duration did not meet the minimum, or else we will eventually run out of file descriptors.
(closes issue #10918)
Reported by: brak2718
Patches:
vm1.4.12.1.patch uploaded by brak2718 (license 279)
Modified:
branches/1.4/apps/app_voicemail.c
Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=85242&r1=85241&r2=85242
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Wed Oct 10 09:14:56 2007
@@ -3064,6 +3064,7 @@
if (txt) {
if (duration < vmminmessage) {
+ fclose(txt);
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);
ast_filedelete(tmptxtfile, NULL);
More information about the asterisk-commits
mailing list