[asterisk-bugs] [Asterisk 0012574]: warning message when loading dialplan if using #exec

noreply at bugs.digium.com noreply at bugs.digium.com
Fri May 2 15:56:21 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12574 
====================================================================== 
Reported By:                jmls
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12574
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 115200 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-02-2008 13:23 CDT
Last Modified:              05-02-2008 15:56 CDT
====================================================================== 
Summary:                    warning message when loading dialplan if using 
#exec
Description: 
if you use #exec in the extensions.conf file more than once, you get a
warning on the console
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 05-02-08 15:56  
---------------------------------------------------------------------- 
I think the reason this is happening is because the way #exec works is that
it creates a temporary file and then #includes it. This temporary file is
whatever the is given as the argument to #exec, followed by the current
Unix timestamp, and then the thread id.

Since the timestamp only has resolution to the second, it is possible that
the multiple #execs are being reached within the same second, causing the
temporary files to have the same name. I believe the proper fix for this
will be to have higher resolution on the time used in the temporary file's
name.

I will give this a try and see if it makes a difference. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-02-08 15:56  putnopvut      Note Added: 0086336                          
======================================================================




More information about the asterisk-bugs mailing list