Hello,
A return code of -4 means that the Register request is lacking auth
credentials. This is normal for the first Register request coming from
an UA, but after the 401 challenge, the UA should send another Register
with the appropriate credentials. If you get this error two times in a
row for the same UA, it means that you are dealing with some broken UAs
that do not properly handle Register authorisation requests.
Regards,
Vlad Paiu
OpenSIPS Developer
On 09/05/2011 08:37 PM, [email protected] wrote:
Hi, I'm new to OpenSIPS, set up only load_balance and REGISTER
but I have a problem with the registration.
returns error some users "Please send new Register with auth info 1000"
i use mysql for register users
if (is_method("REGISTER")) {
if (!www_authorize("", "subscriber")) {
if ($retcode < 0) {
switch ($retcode) {
case - 4:
xlog("L_INFO", "Please send new Register with
auth info $fU");
www_challenge("", "0");
exit;
case - 2:
xlog("L_INFO", "Wrong password for user $fU");
sl_send_reply("401", "Wrong password");
break;
case - 1:
xlog("L_INFO", "User doesnt exist $fU");
sl_send_reply("401", "User doesnt exist");
break;
}
}
}
if (!save("location")) {
sl_send_reply("408", "Requeste timeout");
exit;
}
exit;
}
__________ Información de ESET Smart Security, versión de la base de
firmas de virus 6438 (20110905) __________
ESET Smart Security ha comprobado este mensaje.
http://www.eset.com
_______________________________________________
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