Hi Guys,
Is to convert or obtain
$TV(s) - seconds (cached at first call per sip message) $TV(u) - microseconds (cached at first call per sip message)
to datetime.microsecs?
I'm trying to save 180/183 datetime (cached) like YYYY-MM-DD HH:mm:SS.microsecs
$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S); <--this is current time, not cached $dlg_var(ring_time_micro) = $TV(u); <-- this is cached us
Thanks in advance!
Diego.
Is this possible?
2017-04-27 23:00 GMT-03:00 Diego Nadares dnadares@gmail.com:
Hi Guys,
Is to convert or obtain
$TV(s) - seconds (cached at first call per sip message) $TV(u) - microseconds (cached at first call per sip message)
to datetime.microsecs?
I'm trying to save 180/183 datetime (cached) like YYYY-MM-DD HH:mm:SS.microsecs
$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S); <--this is current time, not cached $dlg_var(ring_time_micro) = $TV(u); <-- this is cached us
Thanks in advance!
Diego.
Hello,
On 28.04.17 04:00, Diego Nadares wrote:
Hi Guys,
Is to convert or obtain
$TV(s) - seconds (cached at first call per sip message) $TV(u) - microseconds (cached at first call per sip message)
to datetime.microsecs?
I'm trying to save 180/183 datetime (cached) like YYYY-MM-DD HH:mm:SS.microsecs
$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S); <--this is current time, not cached $dlg_var(ring_time_micro) = $TV(u); <-- this is cached us
if you mix cached with no cached values, then you get them from different points in time and they are not accurate.
Cheers, Daniel
Hi Daniel,
Thanks for your response. You are right. How can I get cached datetime with microsecs ? Or Is there any function to convert cached TV vars to the format I need?
$TV(s) - seconds (cached at first call per sip message) $TV(u) - microseconds (cached at first call per sip message)
Cheers,
Diego
El 28 abr. 2017, a las 03:50, Daniel-Constantin Mierla miconda@gmail.com escribió:
Hello,
On 28.04.17 04:00, Diego Nadares wrote: Hi Guys,
Is to convert or obtain
$TV(s) - seconds (cached at first call per sip message) $TV(u) - microseconds (cached at first call per sip message)
to datetime.microsecs?
I'm trying to save 180/183 datetime (cached) like YYYY-MM-DD HH:mm:SS.microsecs
$dlg_var(ring_time) = $timef(%Y-%m-%d %H:%M:%S); <--this is current time, not cached $dlg_var(ring_time_micro) = $TV(u); <-- this is cached us
if you mix cached with no cached values, then you get them from different points in time and they are not accurate.
Cheers, Daniel -- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users