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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Nov 27 10:25:12 CET 2009


Hi,

If the UNIX timestamp is not so friendly for you, try to use other 
string-like time values like $Tf or $time() :
    http://www.opensips.org/Resources/DocsCoreVar16#toc80

Regards

lorenzo wrote:
> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list