[asterisk-bugs] [Asterisk 0014071]: [patch] Improve debugging output for specific context inclusion failure case in pbx_config

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 12 16:04:18 CST 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14071 
====================================================================== 
Reported By:                kshumard
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14071
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   text
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 163761 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-12 16:04 CST
Last Modified:              2008-12-12 16:04 CST
====================================================================== 
Summary:                    [patch] Improve debugging output for specific
context inclusion failure case in pbx_config
Description: 
The dialplan below results in a generic, "WARNING[18233]: pbx_config.c:1560
pbx_load_config: Unable to include context 'local' in context
'longdistance'" message, output by ast_context_add_include2(). This patch
copies the "switch (errno)" block out of handle_cli_dialplan_add_include()
that follows the call to ast_context_add_include(). This makes the warning
much more descriptive, i.e. "WARNING[20865]: pbx_config.c:1570
pbx_load_config: Context 'local' already included in 'longdistance'
context".

[longdistance]
include => local

[local]
exten => s,1,Noop

[longdistance]
exten => s,1,Noop
include => local

While the example seems somewhat contrived, a student in an Asterisk
Advanced training class encountered it. Every improvement to documentation
helps, right? : )
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-12 16:04 kshumard       New Issue                                    
2008-12-12 16:04 kshumard       Asterisk Version          => SVN             
2008-12-12 16:04 kshumard       SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2008-12-12 16:04 kshumard       SVN Revision (number only!) => 163761          
======================================================================




More information about the asterisk-bugs mailing list