Hi,
I am running Kamailio 5.7.* RHEL
I need to log the latency of each XHTTP request (milli or microseconds precision) so I tried using $TV(un) which always gives a 0 value.
Can we access $TV(un) under XHTTP routes?
event_route[xhttp:request] { $var(tv_http_req_start_time) = $TV(un); xlog("L_INFO", "$$var(tv_http_req_start_time)= $var(tv_http_req_start_time) and actual $$TV(un)= $TV(un)"); .... }
Output: Jan 22 16:18:20 VM-123************ kamailio[346535]: INFO: <script>: $var(tv_http_req_start_time)= 0 and actual $TV(un)= 0
$TS - I have tried this, it gives the Unix in seconds precision but I want milliseconds precision.
Thanks Kasee