Hi, is it possible to use asterisk to serve two SIP-domains with different users? It does work to define two domains with 'domain=' in sip.conf, but that allows all sip-users to register with both domains. I want to define users for a one domain only and not allow them to use the second. Lets say I have domains domainA.org and domainB.org and a sip-user user1. User1 should be able to register as user1 at domainA.org but not as user1 at domainB.org. In addition I want to be able to define a second (different) user with the same username but another domain. How can I do that? Is it possible at all? thanks Bjoern
Johansson Olle E
2008-Jan-30 16:42 UTC
[asterisk-users] Using two SIP-Domains with asterisk
30 jan 2008 kl. 15.44 skrev Bjoern Haje:> Hi, > > is it possible to use asterisk to serve two SIP-domains with different > users? > It does work to define two domains with 'domain=' in sip.conf, but > that > allows all sip-users to register with both domains. > I want to define users for a one domain only and not allow them to use > the second. > Lets say I have domains domainA.org and domainB.org and a sip-user > user1. User1 should be able to register as user1 at domainA.org but not > as > user1 at domainB.org. > In addition I want to be able to define a second (different) user with > the same username but another domain. > > How can I do that? Is it possible at all?Everything is possible if you change the code, but at this moment we only have one address space in chan_sip - regardless of domain. So you need unique user names for all users. Normally this is not a huge issue, as you need to separate user names and extensions, so that the user names are random strings or something that will never match anything useful except the user's name in Asterisk. This is something I planned for codename pineapple - to be able to separate Asterisk per domain. /O