[SR-Users] kamailio log dialog correlation

Henning Westerholt hw at gilawa.com
Fri Jan 21 17:38:34 CET 2022


the referenced PR was about a related xlog module enhancement. You can already use variables in core log_prefix, e.g. refer to default cfg:

$ grep log_prefix repositories/kamailio/etc/kamailio.cfg
log_prefix="{$mt $hdr(CSeq) $ci} "



Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

-----Original Message-----
From: marek <cervajs64 at gmail.com> 
Sent: Friday, January 21, 2022 5:33 PM
To: Henning Westerholt <hw at gilawa.com>; Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] kamailio log dialog correlation

found this https://github.com/kamailio/kamailio/pull/2845

so, if you want use variables in log_prefix, you need upcoming kamailio 5.6



Dne 19/01/2022 v 16:23 Henning Westerholt napsal(a):
> Hello,
> you could try to use log_prefix. Have not tried it yet with a dialog variable.
> http://www.kamailio.org/wiki/cookbooks/5.5.x/core#log_prefix
> Regarding output of a line number, you could try to use this one:
> http://www.kamailio.org/wiki/cookbooks/5.4.x/pseudovariables#cfg_key_-_config_file_attributes
> Cheers,
> Henning

More information about the sr-users mailing list