[Asterisk-Users] Asterisk Capabilities

Parker, Blake (MIS) Blake.Parker at alacare.com
Wed Mar 16 12:07:29 MST 2005


Yes this helps a lot.  thanks

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Kristian
Kielhofner
Sent: Wednesday, March 16, 2005 12:41 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Asterisk Capabilities

Parker, Blake (MIS) wrote:
> 
> I am new to Asterisk and currently work mainly with Cisco Callmanager.

> With Callmanager I can setup partitions and call search spaces to 
> determine where a given phone can and can't dial.  Does Asterisk offer

> this type of functionality, and if so how?
> 
> ***Blake Parker*

Blake,

	This is accomplished by using contexts.  The page at
http://www.voip-info.org/wiki-Asterisk+contexts does not help much, but 
basically the idea is your devices - Zap channels, SIP, Skinny, IAX, 
etc. all have a context to which they belong, and they can only make 
calls to numbers that match in that context:


sip.conf:

[myphone]
context=staff
username=myphone
...etc...

[bossphone]
context=executives
username=bossphone

extensions.conf:

[executives]
include => staff
include => int-out

[staff]
include => ld-out
include => local-out
include => default

[ld-out]
exten => _1NXXNXXXXXX,1,Dial({MYTRUNK}/${EXTEN},20)
exten => ...etc...

[local-out]
exten => _NXXXXXX,1,Dial({MYTRUNK}/${EXTEN},20)
exten => ...etc...

[int-out]
exten => _011.,1,Dial({MYTRUNK}/${EXTEN},20)
exten => ...etc...

	In this example, the phones in the "staff" context can only dial

numbers that are local or long distance (US + Canada).  Any 
international numbers (011 access code + digits), can only be dialed by 
the phones in the "executives" context.  Does this help?

--
Kristian Kielhofner
_______________________________________________
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



More information about the asterisk-users mailing list