[OpenSIPS-Users] milliseconds and random values
Anton Zagorskiy
a.zagorskiy at oyster-telecom.ru
Mon Jan 17 14:38:24 CET 2011
Hi Anca,
I'm sorry, but $Tsm return microseconds, not milliseconds.
Also, despite gettimeofday() documentation, on CentOS 5.5 $Tsm returns
_current_ microseconds, not timestamp in microseconds.
But this seems correct, because of underlying function gettimeofday()
returns microseconds' field in a long int type. It capacity is 10 digit (4
bytes) and for microseconds it should has 16 digits (at least 7 bytes).
> -----Original Message-----
> From: users-bounces at lists.opensips.org [mailto:users-
> bounces at lists.opensips.org] On Behalf Of Anca Vamanu
> Sent: Monday, January 17, 2011 3:26 PM
> To: users at lists.opensips.org
> Subject: Re: [OpenSIPS-Users] milliseconds and random values
>
>
> On 01/17/2011 12:19 PM, Anton Zagorskiy wrote:
> > Inspection source code I've found a $Tsm pseudo variable that returns
> > milliseconds of a current time.
> > But this variable isn't described in docs (Only in the 1.6.2
> changelog).
> >
> > Please update docs.
> >
> Thanks, Anton! I updated the docs:
> http://www.opensips.org/Resources/DocsCoreVar#toc83.
> It seems that there is no function to get a random values. Of course,
> you could use perl code for that.
>
> --
> Anca Vamanu
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list