[asterisk-bugs] [Asterisk 0015410]: Template system overriding

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 31 17:36:39 CDT 2009


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=15410 
====================================================================== 
Reported By:                PLL
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15410
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 203802 
Request Review:              
Resolution:                 not fixable
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-06-26 19:05 CDT
Last Modified:              2009-08-31 17:36 CDT
====================================================================== 
Summary:                    Template system overriding
Description: 
# users.conf
[00](!) ; Some defaults
hasiax=yes
hasvoicemail=yes
hasmanager=no
context=overriding

[01](!) ; Only one default here
context=overriding

[10] ; no template
hasiax=yes
hasvoicemail=yes
hasmanager=yes
context=overriding

[11](00) ; notice that it can't override the template.
hasiax=no
hasvoicemail=no
hasmanager=yes

[12](01) ; Works as expected.
hasiax=no
hasvoicemail=no
hasmanager=yes

# EOF

# User 11 shouldn't be in iax2 list.
*CLI> iax2 show users
Username         Secret                Authen           Def.Context     
A/C    Codec Pref
10               -no secret-           000000000000003  users           
No     Host
11               -no secret-           000000000000003  users           
No     Host

# User 11 shouldn't be on voicemail list.
*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
default    10                                              0
default    11                                              0
default    maxmsg                                           0
3 voicemail users configured.

# User 11 should be on manager list
*CLI> manager show users

username
--------
10
12
-------------------
2 manager users configured.
====================================================================== 

---------------------------------------------------------------------- 
 (0109878) tilghman (administrator) - 2009-08-31 17:36
 https://issues.asterisk.org/view.php?id=15410#c109878 
---------------------------------------------------------------------- 
While you are correct that this is the behavior, you seem to be under the
mistaken assumption that because we provide templates, we also provide a
method of overriding those templates.  This is not the case.  Each template
is treated as if it were substituted initially within the specified
context, and hence, overriding may or may not occur.  Especially with the
"has*" type options, we provide no such assurance.

If you believe this decision is in error, you may post a message to the
asterisk-dev list, proposing your change.  This forum is inappropriate to
debate new features. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-31 17:36 tilghman       Note Added: 0109878                          
2009-08-31 17:36 tilghman       Status                   new => closed       
2009-08-31 17:36 tilghman       Resolution               open => not fixable 
======================================================================




More information about the asterisk-bugs mailing list