[Asterisk-Users] "context confusion" internal context 2 context only?
Andrew Joakimsen
andrew at envisionstudio.net
Sat Oct 11 22:36:43 MST 2003
Includes are recursive
Make a context with just all the internal extensions, and then make
contexts for all the outbound calls and another group of contexts just
as you are doing (admin, sales, etc)
Then
[admin]
include => international
include => extensions
[sales]
include => longdistance
include => extensions
[international]
include=> longdistance
exten => _9011.,1,Dial....
...
[longdistance]
include => local
exten => _91NXXNXXXXXX,1,Dial...
...
[local]
exten => _NXXXXXX,1,Dial....
...
[extensions]
exten => 301,1,Dial...
...
So as to create two sets of contexts, one with actual dial strings and
another which includes your first set, based on what access you want
users to have, you place the users in the second set.
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com [mailto:asterisk-users-
> admin at lists.digium.com] On Behalf Of Ken Godee
> Sent: Sunday, October 12, 2003 1:08 AM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] "context confusion" internal context 2
context
> only?
>
> I'm trying to create several contexts for extentions with
> different levels of access to features and I'm wondering
> how the heck do I include all the contexts so that you
> can call internal to any extention in another context without
> giving the features of the higher level context to the lower
> level context?
> ie.....
>
> [admin]
> include => local
> include => longdistance
> include => international
> include => services
> exten => 104,1,Dial(Zap/20|20)
> exten => 105 106 107......
> etc....
>
> [sales]
> include => local
> include => longdistance
> exten => 201,1,Dial(Zap/5|20)
> exten => 202 203 204 .....
> etc....
>
> [lobby]
> include => local
> exten => 303,1,Dial(Zap/10|20)
> exten => 304 305 .......
> etc....
>
> Extentions in lobby should be able to directly
> call extentions in either admin or sales.
> Using an include in local then gives lobby access to
> ld,int.,services, etc.
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list