[Asterisk-Users] Extensions / Contexts
Alexander Lopez
alex.lopez at opsys.com
Tue Apr 26 14:25:45 MST 2005
Extensions, Usernames, context, and what the device 'thinks it is' are
all different.
As SIP goes Make your sip.conf entries like this:
[compa2000]
username=companyA_2000
context=contextCompanyA
[compb2000]
username=companyB_2000
context=contextCompanyB
That will give each device a unique login and them in your individual
company context do:
[compA]
exten = 2000,1,Dial(SIP/compa2000)
[compb]
exten => 2000,1,Dial(SIP/compb2000)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Wiley
Siler
Sent: Tuesday, April 26, 2005 3:02 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Extensions / Contexts
The short answer is No.
The method you describe is intrinsicly illogical.
Assuming there is an IVR, how will I know which extension 2000 I am
calling if that were possible?
I might get company A instead of company B.
You can create two * servers with identical dial plans, link them over
IAX, and allow users to call each other if they use a rpefix lke 7.
Example: Comp-A user 2000 calls comp-B user 2000 by dialing 72000.
Now if you want to use one server only, then just use 200x for one
company and 300x for the other and segment the dial plans.
W
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Sebastian
Silva
Sent: Tuesday, April 26, 2005 11:29 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Extensions / Contexts
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?:
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
_______________________________________________
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