Ken Godee
2003-Oct-11 22:08 UTC
[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.
Andrew Joakimsen
2003-Oct-11 22:36 UTC
[Asterisk-Users] "context confusion" internal context 2 context only?
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@lists.digium.com [mailto:asterisk-users- > admin@lists.digium.com] On Behalf Of Ken Godee > Sent: Sunday, October 12, 2003 1:08 AM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] "context confusion" internal context 2context> 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@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
Ken Godee
2003-Oct-12 01:29 UTC
[Asterisk-Users] "context confusion" internal context 2 context only?
Andrew Joakimsen wrote:> 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) >Thank you, Just the answer I was looking for! Ken