[asterisk-bugs] [Asterisk 0011442]: duplicate values when rewriting templated config files
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Dec 3 07:40:58 CST 2007
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=11442
======================================================================
Reported By: tzafrir
Assigned To: murf
======================================================================
Project: Asterisk
Issue ID: 11442
Category: Core/Configuration
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: 1.4.14
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 12-03-2007 06:02 CST
Last Modified: 12-03-2007 07:40 CST
======================================================================
Summary: duplicate values when rewriting templated config
files
Description:
I'm trying to generate slimmer config files using templates.
I use something of the sort of:
[master-template](!)
mastervar = bar
[template](!,master-template)
tvar = value
[cat](template)
catvar = val
I do not expect full transparent rewrite support of this. I do hope to get
at least some "flattening" of the templates that will preserve the values:
[cat]
mastervar = bar
tvar = value
catvar = val
What I actually get is:
After first save/rewrite:
[master-template](!)
mastervar = bar
[template](!)(master-template)
mastervar = bar
tvar = value
[cat](template)
mastervar = bar
tvar = value
catvar = val
And then after the second time those values get rewritten to the
configuration file by Asterisk, they end up as:
[master-template](!)
mastervar = bar
[template](!)
mastervar = bar
tvar = value
[cat](template)
mastervar = bar
tvar = value
mastervar = bar
tvar = value
catvar = val
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
12-03-07 07:40 russell Status new => assigned
12-03-07 07:40 russell Assigned To => murf
======================================================================
More information about the asterisk-bugs
mailing list