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