[SR-Users] kamailio log dialog correlation
hw at gilawa.com
Wed Jan 19 16:23:00 CET 2022
you could try to use log_prefix. Have not tried it yet with a dialog variable.
Regarding output of a line number, you could try to use this one:
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Chad
Sent: Wednesday, January 19, 2022 4:17 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; marek <cervajs64 at gmail.com>
Subject: Re: [SR-Users] kamailio log dialog correlation
I wanted the same thing only with line number, in the end I had to do a global search and replace, I could not get it to work via a global param.
I even tried xlogl which just threw errors that no such command existed (even though it is listed in the docs:
Here is what I ended up with:
xlog("L_INFO", "### Something to log ### Line: $cfg(line)\n");
Maybe someone else knows more, but I could not get it to work without hardcoding it into every xlog call.
On 1/19/22 7:06 AM, marek wrote:
> is it possible create log of SIP dialog like https://wiki.asterisk.org/wiki/display/AST/Unique+Call-ID+Logging ?
> it looks like its possible like this
> xlog("L_INFO", "D$dlg(h_id) something to log \n");
> but i must copy $dlg(h_id) in every xlog
> tried this
> modparam("xlog", "prefix", "D$dlg(h_id)")
> but it not works with variables
> any other tips/ideas?
> goal is to correlate logs for one dialog (call)
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users at lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
More information about the sr-users