<div dir="ltr">Hi List,<div><br></div><div>i thought there could be a solution to disable the log_prefix for acc module - but i didn't found it. Is there a solution to supress log_prefix for acc like acc_json did that?</div><div><br></div><div>I use kamailio 5.5.2 with that settings:</div><div><br></div><div><div>log_name="kamailio"<br>log_facility=LOG_LOCAL4<br>log_prefix="{$hdr(CSeq) $ci} "<br><br>the acc module then logs the "log_prefix" - plus some module/function stuff:</div><div><br>INFO: {1 INVITE SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050} acc [acc.c:285]: acc_log_request(): ACC: transaction answered: timestamp=1635843776;utctime=2021-11-02 09:02:56;method=INVITE;from_tag=SDkk50d01-e8bc0cda;to_tag=XBr6apQ9HN4HD;call_id=SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050;code=200;reason=OK;src_user=bob;src_domain=sip100;src_ip=172.20.120.56;dst_ouser=alice;dst_user=echo;dst_domain=172.20.120.59;user_agent=;x_t_call_id=;x_routing=;x_billing=<br>INFO: {1 ACK SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050} acc [acc.c:285]: acc_log_request(): ACC: request acknowledged: timestamp=1635843776;utctime=2021-11-02 09:02:56;method=ACK;from_tag=SDkk50d01-e8bc0cda;to_tag=XBr6apQ9HN4HD;call_id=SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050;code=200;reason=OK;src_user=bob;src_domain=sip100;src_ip=172.20.120.56;dst_ouser=alice;dst_user=alice;dst_domain=172.20.120.51;user_agent=;x_t_call_id=;x_routing=;x_billing=<br>INFO: {2 BYE SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050} acc [acc.c:285]: acc_log_request(): ACC: transaction answered: timestamp=1635843833;utctime=2021-11-02 09:03:53;method=BYE;from_tag=SDkk50d01-e8bc0cda;to_tag=XBr6apQ9HN4HD;call_id=SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050;code=200;reason=OK;src_user=bob;src_domain=sip100;src_ip=172.20.120.56;dst_ouser=alice;dst_user=alice;dst_domain=172.20.120.51;user_agent=;x_t_call_id=;x_routing=;x_billing=<br><br>The acc_json module is able to log acc without log_prefix:</div><div><br>{"time": "2021/11/02 10:02:56", "method": "INVITE", "from_tag": "SDkk50d01-e8bc0cda", "to_tag": "XBr6apQ9HN4HD", "callid": "SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050", "sip_code": "200", "sip_reason": "OK", "src_user": "bob", "src_domain": "sip100", "src_ip": "172.20.120.56", "dst_ouser": "alice", "dst_user": "echo", "dst_domain": "172.20.120.59", "user_agent": "", "x_t_call_id": "", "x_routing": "", "x_billing": ""}<br>{"time": "2021/11/02 10:03:53", "method": "BYE", "from_tag": "SDkk50d01-e8bc0cda", "to_tag": "XBr6apQ9HN4HD", "callid": "SDkk50d01-1f7cc956b0b908e42d284189a11b44e7-ct46om0050", "sip_code": "200", "sip_reason": "OK", "src_user": "bob", "src_domain": "sip100", "src_ip": "172.20.120.56", "dst_ouser": "alice", "dst_user": "alice", "dst_domain": "172.20.120.51", "user_agent": "", "x_t_call_id": "", "x_routing": "", "x_billing": ""}<br><br>And just for the records - how to get rid off the rsyslog prefix time/date stuff:<br><br># /etc/rsyslog.d/kamailio.conf<br># drop :msg from rtpengine with "timer run time" - debugging only:<br>:msg, contains, "timer run time" ~<br># Template only msg:<br>$template myFormat,"%msg%\n"<br># log only to local* and NOT to /var/log/messages<br>local6.*;local6.!=info                                  -/var/log/platform/voip/kamailio/rtpengine.log<br>local6.*                                                stop<br>local5.*                                                -/var/log/platform/voip/kamailio/rtpengine-cdr.log; myFormat<br>local5.*                                                stop<br>local4.*                                                -/var/log/platform/voip/kamailio/kamailio.log<br>local4.*                                                stop<br>local2.*                                                -/var/log/platform/voip/kamailio/kamailio-cdr.log; myFormat<br>local2.*                                                stop<br>local1.*                                                -/var/log/platform/voip/kamailio/kamailio-cdr-json.log; myFormat<br>local1.*                                                stop<br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div></div></div>