[OpenSIPS-Users] Multi domain registration.
Chris Maciejewski
chris at wima.co.uk
Sat Sep 12 17:48:45 CEST 2009
Hi Saul, I don't use opensipsctl to insert users into subscriber
table, yet as shown in my first post 'domain' column is populated
correctly.
I tried now, to change my REGISTER block to:
if (!www_authorize("$td", "subscriber"))
{
www_challenge("$td", "0");
exit;
}
if (!check_to())
{
sl_send_reply("403","Forbidden auth ID");
exit;
}
if (!save("location"))
{
sl_reply_error();
}
but this doesn't seem to work.
Any other ideas how to prevent users to REGISTER in a domain they
don't belong to?
2009/9/9 Saúl Ibarra <saghul at gmail.com>:
> When adding a user add the domain part:
>
> Opensipsctl add 1000 at sip1.domain.com password
>
>
> 2009/9/9, Chris Maciejewski <chris at wima.co.uk>:
>> Hi,
>>
>> What would be the best/easiest way of preventing registrations into
>> "wrong" domains?
>>
>> For example:
>>
>> subscriber table:
>> | username | domain | password
>> | 10000 | sip1.domain | secret1
>> | 10001 | sip2.domain | secret2
>>
>> in my openser.cfg I got:
>>
>> modparam("usrloc", "use_domain", 1)
>>
>> yet still
>> "REGISTER 10000 at sip2.domain"
>> and
>> "REGISTER 100001 at sip1.domain"
>> are both allowed.
>>
>> How can I restrict users to REGISTER only into their own domain?
>>
>> Thanks
>> Chris
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
> --
> Enviado desde mi dispositivo móvil
>
> /Saúl
> http://www.saghul.net | http://www.sipdoc.net
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list