On 27/08/10 16:36, Joan wrote:
> At the moment I still have some doubts on where to put the logging
> part, to minimize the false positives (setting like in the example it
> marks the first packet as wrong)
Not tested at all - but something like that should work.
if (is_method("REGISTER")) {
# authenticate the REGISTER requests
if (!www_authorize("", "subscriber")) {
if (is_present_hf("Authorization"))
xlog("L_ERR","Auth error for $...@$fd from $si");
www_challenge("", "0");
exit;
}
Regards,
Stan
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users