[Asterisk-Users] Giving sip users multiple contexts

Matt mhoppes at gmail.com
Wed Mar 30 08:24:07 MST 2005


I know this is slightly round about and probably not recommended...
but could I do an #include for each user... include their sip config
in there as well as:
context=sip-usersphonenumber

[sip-usersphonenumber]
include => theirsettings
include => localstuff
include => 911

?


On Wed, 30 Mar 2005 10:21:50 -0500, Matt <mhoppes at gmail.com> wrote:
> Right,
> I understand the logic behind this, and normally this is what I'd do..
> but in this particular instance.. some users are going to have configs
> that are different then what others have... I guess the answer is NO..
> you can not have multiple contexts on a sip without creating a context
> and includes... was hoping I could do includes on the sip user.
> 
> 
> On Wed, 30 Mar 2005 12:18:12 -0300, Matias G.
> <listas_ast at reliable.com.ar> wrote:
> > just think it the other way round, group your users in different groups
> > acording to what you want to let them do (ie: Managers, Marketing Employees,
> > Salesman, etc) then create a context for each group, and include into each
> > of those contexts what you want to let them do.
> >
> > hope this helps.
> >
> > bye,
> > M.
> > ----- Original Message -----
> > From: "Matt" <mhoppes at gmail.com>
> > To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> > <asterisk-users at lists.digium.com>
> > Sent: Wednesday, March 30, 2005 11:53 AM
> > Subject: Re: [Asterisk-Users] Giving sip users multiple contexts
> >
> > > Well,
> > > I thought about that.... but wanted to check to see if there was another
> > way...
> > > at the moment I have:
> > > 911 calling
> > > local calling
> > > international calling
> > > long distance.
> > >
> > > That's only 4.. but there are various combinations 911 and local...
> > > 911 and local and long distance... 911 and international (no long
> > > distnace)... I guess I can make up seperate contexts.. but it would be
> > > helpful if I could just delve the sips directly into a context.
> > >
> > > On Wed, 30 Mar 2005 15:49:16 +0100, Julian J. M. <julianjm at gmail.com>
> > wrote:
> > > > Create serveral contexts, e.g. from-sip-group1,  from-sip-group2, etc...
> > > >
> > > > Then in that context, include the features you'd like for each group,
> > > > and give each sip user the correct context.
> > > >
> > > > Julian J. M.
> > > >
> > > > On Wed, 30 Mar 2005 09:30:16 -0500, Matt <mhoppes at gmail.com> wrote:
> > > > > How would I go about giving sip users multiple contexts?  For instance
> > > > > right now I have them all in: from-sip-internal
> > > > >
> > > > > Is there a way I can (for sip users) also include say my [dial-911]
> > > > > [dial-local] and [dial-longdistance].. bearing in mind that I want to
> > > > > have different sips allowed to do different things so I can't just do
> > > > > includes for those in my from-sip-internal.
> > > >
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> >
> >
>



More information about the asterisk-users mailing list