[Asterisk-Users] Same Extensions in Multiple contexts

Leif Madsen leif.madsen at gmail.com
Mon Nov 8 14:08:25 MST 2004


On Mon, 8 Nov 2004 15:43:10 -0500, Uma S. Pandey <uma at prgsi.com> wrote:
> In Asterisk, Can we have same extension number in different contexts? 
> For example: 
> 
> [Context_company_1] 
> exten => 200,1,,, 
> 
> [context_company_2] 
> Exten =>200,1,.. 
> 
> [context_company_3] 
> Exten =>200,1,.. 

Sure you can.  You'll need to limit callers abilities based on which
company they work for.  You could do this by including the contexts of
the companies.

For instance, lets say you have a phone in sip.conf defined.  The
context=basic-comp1

[basic-comp1]
include => voicemail
include => context_company_1

This will only allow the caller to match to extension 200 in company 1
and access to voicemail.

More information about extensions.conf can be found at
http://www.voip-info.org (the wiki), http://www.asteriskdocs.org
(chapter 5) and http://www.google.com.

HTH,
Leif Madsen.
http://www.asteriskdocs.org



More information about the asterisk-users mailing list