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


On Sat, Oct 3, 2020 at 10:19 Henning Westerholt <hw@skalatan.de> wrote:
Hello,



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.



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com



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

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Jan Rozhon

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

To: sr-users@lists.kamailio.org

Subject: [SR-Users] Logging problem



Hi,



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:



/etc/kamailio/kamailio.cfg



log_stderror=no

log_facility=LOG_LOCAL7





/etc/rsyslog.conf



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

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





/etc/rsyslog.d/kamailio.conf



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





/etc/systemd/system/multi-user.target.wants/kamailio.service



SyslogIdentifier=kamailio





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:

timestamp=1601450501;method=INVITE;from_tag=1GH5hGQxN;to_tag=QwcYFet;call_id=ZPZI7Hqytw;code=486;reason=Busy

here;src_user=XXXXXXXXX;





Is there something trivial I am missing?





Thank you. Regards, Jan







_______________________________________________

Kamailio (SER) - Users Mailing List

sr-users@lists.kamailio.org

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users