[OpenSIPS-Users] Opensips 1.4: Value of $Ts and reset

lorenzo asymmetric at autistici.org
Thu Nov 26 15:14:49 CET 2009


On 26/11/09 11:36, Jennifer-4 wrote:
> 
> Hi!
> 
> I´m using Opensips 1.4.
> 
> I need to know the time when some SIP messages are sent. I read the value of
> variable $Ts.
> 
> But, what is the time´s reference? Is there any way to reset the initial
> time?
> 
> Thanks!

as stated here[1], the reference is unix epoch[2], which is 00:00:00 UTC
on 1 January 1970.
in 1.6 and later, if you want to use opensips' startup time as
reference, you can use $TS.
afaik, there's no such parameter in 1.4.

lrnz

[1]: http://www.opensips.org/Resources/DocsCoreVar14#toc80
[2]: http://en.wikipedia.org/wiki/Unix_time



More information about the Users mailing list