[asterisk-bugs] [Asterisk 0016377]: res_monitor.c chan->monitor->filename_base has duplicated path

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 2 19:16:14 CST 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16377 
====================================================================== 
Reported By:                galeras
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16377
Category:                   Resources/res_monitor
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.27.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-12-02 19:16 CST
Last Modified:              2009-12-02 19:16 CST
====================================================================== 
Summary:                    res_monitor.c chan->monitor->filename_base has
duplicated path
Description: 
When res_monitor is mixing the recorded files, calls soxmix with duplicate
paths, for example:

res_monitor.c: monitor executing ( nice -n 19 soxmix
"/var/spool/asterisk/monitor/outbound-20091202-195127-1259801487.116-in.wav"
"/var/spool/asterisk/monitor/outbound-20091202-195127-1259801487.116-out.wav"
"/var/spool/asterisk/monitor/outbound-20091202-195127-1259801487.116.wav" 
&& rm -f
"/var/spool/asterisk/monitor/outbound-20091202-195127-1259801487.116-"* )
&

This happen for inbound calls to a queue. Always reproductible. It seems
the problem is in chan->monitor->filename_base.

We debuged other variables with:

diff res_monitor.c res_monitor.c-20091202
329,333d328
<                       ast_log(LOG_DEBUG,"monitor execute
%s\n",execute);
<                       ast_log(LOG_DEBUG,"monitor dir %s\n",dir);
<                       ast_log(LOG_DEBUG,"monitor absolute
%s\n",absolute);
<                       ast_log(LOG_DEBUG,"monitor name %s\n",name);
<                       ast_log(LOG_DEBUG,"monitor format %s\n",format);

With this modified version, full shows:
res_monitor.c: monitor dir
res_monitor.c: monitor absolute
res_monitor.c: monitor name
/var/spool/asterisk/monitor//var/spool/asterisk/monitor/q8007-20091202-195043-1259801443.107
res_monitor.c: monitor format wav


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-02 19:16 galeras        New Issue                                    
2009-12-02 19:16 galeras        Asterisk Version          => 1.4.27.1        
2009-12-02 19:16 galeras        Regression                => No              
2009-12-02 19:16 galeras        SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list