[SR-Users] problem with $time Pseudo-Variables on 3.3.2

Daniel-Constantin Mierla miconda at gmail.com
Wed Nov 21 17:26:41 CET 2012


Can you try again with latest version of branch 3.3?

Cheers,
Daniel

On 11/21/12 3:04 PM, Daniel-Constantin Mierla wrote:
> Hello,
>
> On 11/21/12 8:55 AM, Uri Shacked wrote:
>>
>> Hi,
>>
>> I upgraded to 3.3.2
>>
>> On 3.2 i used the variable $time() to get the current time for some 
>> process.
>>
>> Every 2 minutes a RTIMER process started, checked the $time(hour) and 
>> $time(min) and on a certain time executed something.
>>
>> This process stopped working on 3.3.2
>>
>> When i debug, i see that the $time() variable keeps on giving me the 
>> same hour and minute that was given on the first run.
>>
>> Meaning the $time() variable does not give the current time.
>>
>> I notice also that the $Ts that on 3.2 gave a current time stopped 
>> doing it and $TS does it now....
>>
>> Any help here?
>>
>> Is it OK and i need to check time another way? Or something in the 
>> $time() has changed...?
>>
> it was some change in terms of caching the time value per message. 
> rtimer uses a fake sip message, so it might have been affected by this 
> change, since it is not received from the net, it is the same value in 
> a local buffer and structure.
>
> I will look over it.
>
> Cheers,
> Daniel
> -- 
> Daniel-Constantin Mierla -http://www.asipto.com
> http://twitter.com/#!/miconda  -http://www.linkedin.com/in/miconda

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121121/8d2bfa70/attachment.htm>


More information about the sr-users mailing list