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_-_config_file_attributes Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ Kamailio services – https://gilawa.com -----Original Message----- From: sr-users <[email protected]> On Behalf Of Chad Sent: Wednesday, January 19, 2022 4:17 PM To: Kamailio (SER) - Users Mailing List <[email protected]>; marek <[email protected]> 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 > * [email protected] > 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 * [email protected] 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 * [email protected] 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
