[OpenSIPS-Users] disabling / filtering some logs

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 3 18:13:37 UTC 2023


Hi Kingsley,

Unfortunately that is not possible, you can control via the log_level 
the verbosity of the opensips code (all of it) and via the xlog_level 
the verbosity of the script logs.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
   https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/

On 12/13/22 12:52 PM, Kingsley Tart wrote:
> 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list