Apparently the trick is to put OpenSER in front of asterisk, and have it rewrite the [EMAIL PROTECTED] part of the SIP header to something like username_domain.com
http://lists.digium.com/pipermail/asterisk-dev/2006-February/018502.html On Thu, 11 May 2006, Dominic wrote: > Hello Everyone, > > I've gone through the docs many times and I can't figure this one out. > > 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: > > 3333] > type=friend > username=3333 > secret=3333 > host=dynamic > context=companyA > > > [3333] > type=friend > username=3333 > secret=3333 > host=dynamic > context=companyB > > > > > Since the contexts differs, I can quite easily seperate the dial plans > and voicemail, no problem there. > > 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? > > Any ideas? > > > Dominic >
