[Asterisk-Users] Extensions / Contexts

David John Walsh davidjohnwalsh at gmail.com
Tue Apr 26 15:19:40 MST 2005


In your channel config  (eg sip.conf) you need to call them things like

[companya-200]
[companyb-200]

Then in extensions.conf

[companya]
exten => 200,1,Dial(sip/companya-200)

[companyb]
exten => 200,1,Dial(sip/companyb-200)

Hope that helps

On 4/26/05, Sebastian Silva <ssilva at gaussar.com> wrote:
> Hi everybody,
> 
> I am writing here because I can't find the solution to my problem (my
> asterisk configuration). I hope somebody can give me a hand with it:
> 
> I need to provide a PBX service to several companies (extensions with
> softphones and Digium hardware to manage the analog lines), my problem
> is that I don't know how to configure the contexts to have, for
> instance, the following scenario:
> 
> Company A
> ext 2000
> ext 2001
> ext 2002
> 
> Company B
> ext 2000
> ext 2001
> ext 2002
> 
> Company A must not to see extensions of company B and viceversa.
> 
> I know this is possible with extensions, but I don't know how to
> distinguish when (for example) a sip phone is connecting to the
> extension 2000 from company A or company B.
> 
> It is possible to configure my sip.conf (or iax.conf) like this? If it
> is, how do I need to configure the softphone? Does Asterisk realizes
> which context to use depending on the username? Does asterisk allows two
> extension sections with the same number?:
> 
> [2000]
> username=companyA_2000
> context=contextCompanyA
> 
> [2000]
> username=companyB_2000
> context=contextCompanyB
> 
> Any help will be appreciated.
> Sebas
> 
> --
> Sebastian Silva
> G R U P O  G A U S S
> Depto. Sistemas
> Av. Libertador 6250 4 piso
> Tl.: 4 706-2222 (int. 121)
> ssilva at gaussar.com
> _______________________________________________
> 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