Jan Janak writes:
OK, then I think everything you need should already be there. You can use get_ticks_raw() to get the ticks value and store it in an AVP. Various macros for comparison and conversion of ticks are in timer_ticks.h.
the problem may be writing tick difference to an avp in onsend_route block. is that possible and allowed?
-- juha