[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:32:22 CST 2008
A NOTE has been added to this issue.
======================================================================
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:32 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? : )
======================================================================
----------------------------------------------------------------------
(0096344) blitzrage (administrator) - 2008-12-12 16:32
http://bugs.digium.com/view.php?id=14071#c96344
----------------------------------------------------------------------
/me punts kshumard!
(I have marked it as code for you :))
Issue History
Date Modified Username Field Change
======================================================================
2008-12-12 16:32 blitzrage Note Added: 0096344
======================================================================
More information about the asterisk-bugs
mailing list