[asterisk-bugs] [Asterisk 0015189]: [patch] #exec script can't access manager on first asterisk load

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 28 23:04:40 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15189 
====================================================================== 
Reported By:                p_lindheimer
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15189
Category:                   Core/PBX
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     acknowledged
Target Version:             1.4.26
Asterisk Version:           SVN 
Regression:                 Yes 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 196616 
Request Review:              
====================================================================== 
Date Submitted:             2009-05-24 12:32 CDT
Last Modified:              2009-05-28 23:04 CDT
====================================================================== 
Summary:                    [patch] #exec script can't access manager on first
asterisk load
Description: 
In earlier versions of Asterisk (1.4.21.1 tested, also 1.2.x I believe), a
'#exec' directive in extensions.conf can run a script that can then access
the manager which is required to get to ASTDB to obtain information to
generate dialplan.

A fix to bug https://issues.asterisk.org/view.php?id=13778 (revision 151905) has
broken this.
====================================================================== 

---------------------------------------------------------------------- 
 (0105700) seanbright (manager) - 2009-05-28 23:04
 https://issues.asterisk.org/view.php?id=15189#c105700 
---------------------------------------------------------------------- 
I've uploaded an initial patch.  This is just a proof of concept at this
point but I wanted to test the idea.  Please give this a test and report
the results.

With this, pbx_config.so will load, loads extensions.conf, and registers a
callback that will be called once the manager loads.  pbx_config then does
a reload.  As I said, this is far from optimal, but it's a start. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-05-28 23:04 seanbright     Note Added: 0105700                          
======================================================================




More information about the asterisk-bugs mailing list