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: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Ken Godee > Sent: Sunday, October 12, 2003 1:08 AM > To: [EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users