[SR-Users] Calculating time differences

Sebastian Damm damm at sipgate.de
Fri Jul 8 15:30:04 CEST 2016


Hi,

we are suspending a transaction at one place in our route and resume
it later. I want to log the time difference between suspending and
resuming. I thought I could do it with saving $TV(Sn), but apparently
I can't. Kamailio says, it can't convert the saved value into integer.
This true, of course.

I was searching for a transformation function converting this string
into float, but there is none.

Is there any way to calculate a time difference other than to live
with seconds-only precision?

Best Regards,
Sebastian



More information about the sr-users mailing list