[SR-Users] kamailio log dialog correlation
ccolumbu at hotmail.com
Wed Jan 19 16:16:38 CET 2022
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
More information about the sr-users