[asterisk-bugs] [Asterisk 0011357]: filestream is not closed before executing commands

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Nov 23 18:23:37 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11357 
====================================================================== 
Reported By:                reformed
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11357
Category:                   Applications/app_mixmonitor
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-23-2007 07:18 CST
Last Modified:              11-23-2007 18:23 CST
====================================================================== 
Summary:                    filestream is not closed before executing commands
Description: 
mixmonitor_thread() closes filestream after it executes [command]

If cache_record_files option used, recorded files will always result in
empty files.

I suggest moving ast_closestream if stament above
if(mixmonitor->post_process)

I have tested this on our production machine and everything behaves as
expected after the change.

All * versions are affected by this.

====================================================================== 

---------------------------------------------------------------------- 
 reformed - 11-23-07 18:23  
---------------------------------------------------------------------- 
Clarification:

When mixmonitor executes user supplied command the stream is not closed so
asterisk has not copied the file from /tmp to the final destination
resulting in empty files.
After [command] is finished the stream is closed and the file is copied
from /tmp to the final destination. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-23-07 18:23  reformed       Note Added: 0074252                          
======================================================================




More information about the asterisk-bugs mailing list