you could try to use log_prefix. Have not tried it yet with a dialog variable.
--
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 Chad
Sent: Wednesday, January 19, 2022 4:17 PM
To: Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org; marek
cervajs64@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:
https://kamailio.org/docs/modules/5.0.x/modules/xlog.html#xlog.f.xlogl).
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.
--
^C
On 1/19/22 7:06 AM, marek wrote:
> hi,
>
> 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)
>
>
> thanks
>
> Marek
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users@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@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