Make sure it’s not systemd who is logging there and not kamailio...

On Sat, Oct 3, 2020 at 10:19 Henning Westerholt <> wrote:

Strange problem. If you tried the obvious stuff already (like rebooting etc..) I would try with "logger" to reproduce the problem, to see if its something related to kamailio or the logging system/machine.




Henning Westerholt –

Kamailio services –

-----Original Message-----

From: sr-users <> On Behalf Of Jan Rozhon

Sent: Wednesday, September 30, 2020 9:35 AM


Subject: [SR-Users] Logging problem


sorry for quite stupid and newbie questions, but I am out of ideas.

1. On one of my Debian 10 servers I am unable to stop logging kamailio messages to /var/log/syslog. It is funny, because I have 3 more servers where it works but on this one, it doesnt and no matter what I try it still keeps sending logs to syslog (and to the file configured).

My related configs:





local6.*                        /var/log/kamailio/cdr.log

local7.*                        /var/log/kamailio/kamailio.log


if $programname contains 'kamailio' then /var/log/kamailio/kamailio.log & stop



2. It is probably related to 1. I am unable to get the CDRs logged to anything else but /var/log/syslog. I tried database (nothing) and setting cdr_facility and again nothing. It just keeps sending everything to /var/log/syslog.

Related configs:

modparam("acc", "cdr_enable", 1)

modparam("acc", "cdrs_table", "acc_cdrs") modparam("acc", "cdr_facility", "LOG_LOCAL6")

Example output in syslog file:

Sep 30 09:21:41 sip2 /usr/sbin/kamailio[1151]: NOTICE: {2 21 INVITE ZPZI7Hqytw} acc [acc.c:279]: acc_log_request(): ACC: call missed:



Is there something trivial I am missing?

Thank you. Regards, Jan


Kamailio (SER) - Users Mailing List