On 5/11/06, Dominic <[EMAIL PROTECTED]> wrote:
Let's say I've a hosted Asterisk platform, with many companies sharing the
same box. Let's say I've got two users, one  in Company A ,and the other in
company B. Let's say both users are exactly alike: they have the same
extension, and username, and password, and everything else except for
CONTEXT.  Their sip.conf entry looks like this:

My problem is: Since the authname/username/password is all the same,  how
would asterisk know to register each phone into the correct context? How do
I make sure that the sip phone for the user in companyA registers into
contextA as opposed to contextB?

You shouldn't use extension numbers as the authorization name anyways,
but basically what you need to do is provide a unique identifier and a
group identifier in the name so you can allow unique names in both
PBXs.

Example:

[john_smith#pbxA]

[john_smith#pbxB]

Then you can use the separate contexts to separate their
functionality, but since you need to authorize the user BEFORE you
send them to a context, then you need to create unique identifiers.
There is probably a way you can do it with domains and such, but I've
not quite figured out the domain stuff in sip.conf yet.

Leif Madsen.

Reply via email to