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 <[email protected]>:
> When adding a user add the domain part:
>
> Opensipsctl add [email protected] password
>
>
> 2009/9/9, Chris Maciejewski <[email protected]>:
>> 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 [email protected]"
>> and
>> "REGISTER [email protected]"
>> are both allowed.
>>
>> How can I restrict users to REGISTER only into their own domain?
>>
>> Thanks
>> Chris
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> 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
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users