[asterisk-bugs] [Asterisk 0012716]: [patch] warning about non-existent dialplan context is garbled, sometimes spurious

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jun 3 10:57:17 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12716 
====================================================================== 
Reported By:                chappell
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12716
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-23-2008 15:51 CDT
Last Modified:              06-03-2008 10:57 CDT
====================================================================== 
Summary:                    [patch] warning about non-existent dialplan context
is garbled, sometimes spurious
Description: 
Every time the dialplan is loaded, the following warning is printed:

WARNING[7633]: pbx.c:6322 ast_context_verify_includes: Context
'_______________' tries includes nonexistent context 'featuremap'

Note the phrase "tries includes".  Also note that in this case the warning
is spurious since featuremap is a pseudo context defined in features.conf.

Patch fixes wording and suppresses warning for featuremap.

However, suppressing the warning creates a new problem.  On some servers 
"dialplan reload" takes up to a minute to run after the prompt has
returned.  Currently the spurious warning, since it occurs at the very end
of the process, servers as an indicate that the command has finished its
work.  Therefore this patch fixes "dialplan reload" so that it prints
"Dialplan reloaded." on the console when it finishes.




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

---------------------------------------------------------------------- 
 chappell - 06-03-08 10:57  
---------------------------------------------------------------------- 
Interesting.  Earlier my tests seemed to confirm the report that there is a
featuremap pseudo context which must be included.  However it now appears
that the differences were actually an issue of whether the disconnect
sequence was detected or not.

To be doubly sure, I grepped the entire source for "featuremap".  I found
nothing to indicate that features.conf creates anything at all called
"featuremap".

So, I have corrected my patch removing the code to suppress the warning
about a missing featuremap context.  The patch now corrects the wording of
the message and adds a console message indicating that "dialplan reload"
has finished. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-03-08 10:57  chappell       Note Added: 0087717                          
======================================================================




More information about the asterisk-bugs mailing list