[asterisk-bugs] [Asterisk 0012275]: [patch] Add support for setting individual contexts in users.conf

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Mar 25 16:24:27 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12275 
====================================================================== 
Reported By:                sespindola
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12275
Category:                   PBX/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 110606 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-21-2008 18:48 CDT
Last Modified:              03-25-2008 16:24 CDT
====================================================================== 
Summary:                    [patch] Add support for setting individual contexts
in users.conf
Description: 
Right now, as far as I know, the only way to configure a context for users
is to set "userscontext=mynewcontext" in the general section of
extensions.conf.

Due to a project I'm currently working on, a need has arised to separate
users
into multiple contexts. So I hacked together this patch that recognizes
the
"context=" configuration option in each user entry and, if present,
registers
the user into that context.

If the user doesn't have a context= option, the value of userscontext is
set.


====================================================================== 

---------------------------------------------------------------------- 
 qwell - 03-25-08 16:24  
---------------------------------------------------------------------- 
I looked at the way this is currently implemented, and...ugh.  It's going
to make things quite difficult.

We don't want a context in users.conf to override userscontext because
people may be relying on that value - and changing it to that could be
disastrous.  At the same time, we do want to allow setting those contexts
on a per user basis.

I can't really think of any ways to do this properly.  The only thing I
can think of, would be adding a pbxcontext (and vmcontext, since voicemail
uses similar code) to users.conf, but that would be really ugly. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-25-08 16:24  qwell          Note Added: 0084536                          
======================================================================




More information about the asterisk-bugs mailing list