[asterisk-bugs] [Asterisk 0011086]: avoid nonexistent context warnings when loading AEL

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Oct 29 18:07:32 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11086 
====================================================================== 
Reported By:                dimas
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   11086
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             10-25-2007 11:25 CDT
Last Modified:              10-29-2007 18:07 CDT
====================================================================== 
Summary:                    avoid nonexistent context warnings when loading AEL
Description: 
When AEL loads its configuration, it produces alot of warnings like

[Oct 25 19:59:26] WARNING[2457] pbx.c: Context 'FOO' tries includes
nonexistent context 'BAR'

This happens because BAR context is defined later than FOO context. When
you have really many context, they are most likely spread across multiple
files and it is not always possible to organize files in a way that
included context are always loaded before including ones.
====================================================================== 

---------------------------------------------------------------------- 
 murf - 10-29-07 18:07  
---------------------------------------------------------------------- 
Sorry about the mixup. References to contexts formed in other parts of
asterisk will probably always be a problem. First, AEL is usually loaded
before other modules, so it cannot search the contexts for the name used.
Next, I suggested that AEL get loaded near the end, but this idea was
rejected, as it would require a bit of work, and it was not believed the
benefit big enough to justify it.

So, these are just warnings. Suggestions of things to be careful about.
Yes, I could make a list of known popular contexts generated by asterisk
apps and other modules, but it will probably never be completely up to
date. 

So, for now, you can ignore these warnings and be OK. To try to suppress
them by  creating these contexts in AEL is not necessary-- looks harmful in
fact. Hmmm. maybe I can expand the message a little and explain a little
more so users are not unnecessarily worried about it. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-29-07 18:07  murf           Note Added: 0072703                          
======================================================================




More information about the asterisk-bugs mailing list