Hi, Is it possible to filter what gets logged into syslog, with more fine grained detail than just setting the log level?
I have essentially this code: if (!validate_dialog()) { if ($rc == -4) { send_reply(481, "Call does not exist"); exit; } else if (!fix_route_dialog()) { xlog("L_WARN", "$cfg_file/$cfg_line @ $Tsm: failed to fix route dialog; rc=$rc\n"); send_reply(488, "Unable to fix dialog"); exit; } I'm getting loads of entries in opensips.log where validate_dialog() fails with rc -2 but the call still works because fix_route_dialog() is successful, eg: ERROR:dialog:dlg_validate_dialog: failed to validate remote contact: dlg=[sip:65.151.23.22:5060] , req=[sip:65.151.23.22:5060;user=phone] I would prefer to not have opensips.log littered with these, but still want to see other errors. Is this possible? Cheers, Kingsley. _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users