[asterisk-bugs] [Asterisk 0015772]: MONITOR_FILENAME fails if directory doesnt exist.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 31 08:55:46 CDT 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15772 
====================================================================== 
Reported By:                generalhan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15772
Category:                   Applications/app_mixmonitor
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.26.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-08-24 13:49 CDT
Last Modified:              2009-08-31 08:55 CDT
====================================================================== 
Summary:                    MONITOR_FILENAME fails if directory doesnt exist.
Description: 
when using Set(MONITOR_FILENAME="/foo/bar/filename") to have queue calls
monitored/recorded, asterisk cannot complete the mixmonitor/recording if
the directory does not exist. This issue really comes into effect when
trying to set the directory structure using ^{MEMBERINTERFACE} as a
directory in the filename path-- since this is not a vairable that is
assigned before the queue call is answered, you cannot simply add a
System() command to create this directory.

This is an Asterisk-wide issue, not limited to a specific operating
system, but for the sake of being complete, my setup is running Asterisk
1.4.26.1 with DADHI Linux 2.2.0.2 on CentOS 5.3
====================================================================== 

---------------------------------------------------------------------- 
 (0109840) lmadsen (administrator) - 2009-08-31 08:55
 https://issues.asterisk.org/view.php?id=15772#c109840 
---------------------------------------------------------------------- 
I'm closing this issue as a feature request, because really I wouldn't
expect Asterisk to just start creating directories willy-nilly -- that is
really an administrator issue. Additionally, there is the STAT() function
which you can use to check to see if the directory exists prior to using
it. If it doesn't exist, you can easily create it yourself. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-31 08:55 lmadsen        Note Added: 0109840                          
2009-08-31 08:55 lmadsen        Status                   new => closed       
2009-08-31 08:55 lmadsen        Resolution               open => won't fix   
======================================================================




More information about the asterisk-bugs mailing list