If you set up only internal extesions in the default context, then include 
default in [building1] and [office] all of those extensions can call 
internally.  I set up several standard features into the default context which 
everyone can access.

If you want to control feature access, say, for example a line that reads the 
time (let's just say), put that in a different context.

[office]
include => default
include => local
include => international
include => timeline

[building1]
include => default
include => local
 
[default]
exten => 700,1,Dial(SIP/${EXTEN})
exten => 100,1,Dial(SIP/${EXTEN})
exten => 200,2,Dial(SIP/${EXTEN})
;and so on for your other extensions

[timeline]
exten => something

Or, if you wanted to control access to who could call which internal extension, 
then you break out default into groups of their own.

[office]
include => office-ext
include => local
include => international
include => timeline

[building1]
include => building1-ext
include => office-ext
include => local

[office-ext]
exten => 700,1,Dial(SIP/${EXTEN})

[building1-ext]
exten => 100,1,Dial(SIP/${EXTEN})

In that example, office can call other office numbers, make local calls, make 
international calls, and access the timeline feature.  Building 1 can access 
building1 extensions, office extensions, and make local calls.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chris Mason
(Lists)
Sent: Friday, June 17, 2005 5:40 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Includes include the includes?


First, let me apologize for the multiple posts - my procmail recipe had a
bug that hid most mail form the list for a day.

The inheritance of includes creates a problem for me. I want to group the
extensions, not put them all in default to control access to features. So
[office] extensions should have the include => longdistance but  [building1]
should not.

However, how can [building1] then dial office?


Chris Mason
www.anguillaguide.com
Tel:  (305) 704-7249 Fax: (815)301-9759  

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Tarpo, Louie
> Sent: Wednesday, June 15, 2005 9:03 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] Includes include the includes?
> 
> Yes it does.  You want something like this...
> 
> [office]
> include => default
> include => local
> include => international
> 
> [building1]
> include => default
> include => local
> 
> [default]
> exten => 700,1,Dial(SIP/${EXTEN})
> exten => 100,1,Dial(SIP/${EXTEN})
> exten => 200,2,Dial(SIP/${EXTEN})
> ;and so on for your other extensions
> 

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@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

Reply via email to