[OpenSIPS-Users] How to log INVITEs with failed authentication
Adam Raszynski
netcentrica at gmail.com
Tue Mar 13 16:42:16 CET 2012
Hi All,
I would like to log all INVITE requests sent by users with wrong
authentication details
The problem is that I only need really failed auth INVITE attempts (with
wrong username/password), not all requests sent with no credentials (before
challenged by OpenSIPS).
Following script logs also requests with no credentials, it would be great
if someone will help me to correct it:
if (!check_source_address("0")) {
if (!proxy_authorize("", "subscriber")) {
xlog("L_ERROR","Auth error for $fU@$fd from $si cause -1 INVITE\n");
proxy_challenge("", "0");
exit;
}
if (!db_check_from()) {
sl_send_reply("403","Forbidden, use FROM=ID");
exit;
}
consume_credentials();
# caller authenticated
}
Best Regards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120313/cd1cec0f/attachment.htm>
More information about the Users
mailing list