[Kamailio-Users] How are computed $Tf and $Ts?

Iñaki Baz Castillo ibc at aliax.net
Mon Nov 24 14:40:30 CET 2008


Hi, it doesn't make sense:

	xlog("L_INFO","--- time pre http:  $Tf - $Ts\n");
	http_query("/test1.html",
		"r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escape.param})",
		"$var(result)");
	xlog("L_INFO","--- time post http: $Tf - $Ts\n");

I always get:

  --- time pre http:  Mon Nov 24 14:37:25 2008 - 1227533845
  --- time post http: Mon Nov 24 14:37:25 2008 - 1227533845

Of course it's just impossible that the http query takes 0.000 seconds.

I could use 'benchmark' module fot this stuf, but I wonder why $Tf returns the 
same value in any place of the script. Maybe it is just computed at the 
script start for each message?

Thanks.


-- 
Iñaki Baz Castillo




More information about the Users mailing list