[OpenSIPS-Users] Multi domain registration.

Chris Maciejewski chris at wima.co.uk
Wed Sep 9 18:20:08 CEST 2009


Sure, I should have also mention my OpenSIPs is 1.5.1.

REGISTER handling code:

if (!www_authorize("", "subscriber"))
{
  www_challenge("", "0");
  exit;
}

if (!check_to())
{
  sl_send_reply("403","Forbidden auth ID");
  exit;
}

if (!save("location"))
{
  sl_reply_error();
}
exit;


2009/9/9 osiris123d <duane.larson at gmail.com>:
>
> Can we see the code in your opensips.cfg file that is handling your Register
> requests?
>
>
>
> Chris Maciejewski wrote:
>>
>> 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
>>
>>
>
> --
> View this message in context: http://n2.nabble.com/Multi-domain-registration-tp3611896p3612074.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list