[Asterisk-Users] context question
Alex Vishnev
avishnev at optonline.net
Sat Sep 24 06:10:11 MST 2005
I briefly looked thru the code and I don't believe there is a way to
separate the context or really make them independent. I know exactly what
you want to accomplish. I think it could be done with a little trick. For
example, every customer on hosted pbx would be given some kind of unique
identifier. The back-end would silently place the identifier at the
beginning or the end of the context making the new name totally unique. The
front-end would hide identifier from users view and just present the name of
the context. That way, customers can name their context anything they like
and there would be no collision. In that case, Goto would also be local to
the context as the "real" context name will contain customer id.
Does that work for you?
Alex
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of trixter
http://www.0xdecafbad.com
Sent: Friday, September 23, 2005 11:04 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] context question
They are aware of each other in 2 senses. First you can goto() them. I
wanted to stop the ability of someone to put in a goto() in their
dialplan to a context that is someone elses (think asterisk hosting).
Second naming collissions. I wanted to stop two people from having the
same name and causing grief that way.
That is why I made the references about prepending some customer id or
something, but I dont think that is the best way to accomplish this
(personal preference), so it will either be an AGI to accomplish this or
it will be something else that already exists that I havent been able to
locate as yet.
On Fri, 2005-09-23 at 21:50 -0500, info at beprojects.com wrote:
> I may be missing something, but aren't all contexts unaware of each
> other be default?
>
> If I do the following
>
> [contexta]
> exten => 3200,1,Dial(SIP/3200,5)
>
> [contextb]
> exten => 3300,1,Dial(SIP/3300,5)
>
> Each context has a phone and they can't call each other. The are
> completely isolated. Unless I'm missing what you are trying to do....
>
>
> trixter http://www.0xdecafbad.com wrote:
> > Is there any way within asterisk to limit the scope of contexts,
> > basically to make one context totally unaware of another.
> >
> > The application I had in mind involved allowing users to create their
> > own dial plans. To that end I wanted to make it so that a given user
> > could not call a different users dialplan.
> >
> > I could filter everything and prepend a customer id to every context
> > they specify, but that can get ugly fast, especially when the parser
> > misses something.
> >
> > If this doesnt exist I can surely do it with an agi, and that is the
> > road I am headed down right now, but why duplicate an effect that may
> > already exist?
> >
> > Thanks.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > --Bandwidth and Colocation sponsored by Easynews.com --
> >
> > 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
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> 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
--
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605 Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
More information about the asterisk-users
mailing list