On Sat, Oct 24, 2009 at 8:29 AM, Juha Heinanen jh@tutpro.com wrote:
eu is asking operators to provide all kinds of statistics about their telephone service.
one of the attributes is routing time of sip request, i.e., in/out delay of sip requests.
in order to be able to do something like that, we could have a pseudo variable that provides ms timestamp value or, perhaps better, a way to zero a ms counter and then store its current value to a pseudo variable in onsend_route. the problems seems to be that according to core cookbook, it is not possible to set pseudo variables in onsend_route.
comments?
Wouldn't it be possible to store the timestamp of request arrival in an AVP at the beginning of request processing and then calculate the difference from the current timestamp in on-send route?
Also, where do you want to store the resulting delay value, in the SIP request itself?
-- Jan