Hello,
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} "
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com
-----Original Message-----
From: marek <cervajs64(a)gmail.com>
Sent: Friday, January 21, 2022 5:33 PM
To: Henning Westerholt <hw(a)gilawa.com>om>; Kamailio (SER) - Users Mailing List
<sr-users(a)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
https://www.kamailio.org/docs/modules/5.6.x/modules/xlog.html#xlog.p.varname
prefix_mode
Marek
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_-_conf…
Cheers,
Henning