[OpenSIPS-Users] Log authentication errors

Stanisław Pitucha viraptor at gmail.com
Fri Aug 27 17:44:30 CEST 2010


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 $fU@$fd from $si");
                www_challenge("", "0");
                exit;
        }

Regards,
Stan



More information about the Users mailing list