[asterisk-bugs] [Asterisk 0008786]: [patch] Properly handle tempates on config read/write

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Oct 31 10:54:43 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=8786 
====================================================================== 
Reported By:                ssokol
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   8786
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4 
SVN Revision (number only!): 49334 
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             01-10-2007 13:17 CST
Last Modified:              10-31-2007 10:54 CDT
====================================================================== 
Summary:                    [patch] Properly handle tempates on config
read/write
Description: 
The configuration parser properly handles inherited properties from
templates when loading them from configuration files, but miss-handles them
when writing the configuration back to disk.

The attached patch denotes a context which has been built from a template
by automatically adding a variable called "inherited_" which is set to the
parent category name.  When the config handler writes the file, it checks
to see if a category is marked as inherited_ and if so, only writes those
values which are absent from the parent context.
====================================================================== 

---------------------------------------------------------------------- 
 blitzrage - 10-31-07 10:54  
---------------------------------------------------------------------- 
/housekeeping

Is this still an issue that needs to be resolved?

I'm not quite sure I understand what is wrong here, or I'd try to
reproduce it. Is this in extensions.conf, or all .conf file which use
templates? When you say writing back out to the file, I'm guessing you
mostly mean the dialplan and writing out the dialplan by adding an
extension from the CLI?

Do you have an example of a file where this doesn't work so I could
reproduce it? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-31-07 10:54  blitzrage      Note Added: 0072810                          
======================================================================




More information about the asterisk-bugs mailing list