OpenSips provides various timeout for configuration: http://www.opensips.org/html/docs/modules/1.8.x/tm.html
How to measure the time (ring duration) between receiving an INVITE and 200 OK? Is there a special function?
OpenSips provides various timeout for configuration: http://www.opensips.org/html/docs/modules/1.8.x/tm.html
How to measure the time (ring duration) between receiving an INVITE and 200 OK? Is there a special function?
I was able to solve this using the $Ts core variable.
i) Record the initial timestamp:
$dlg_val(inviteStartTimestamp) = $Ts;
ii) When 200 OK is received in the reply route, find the time difference in seconds:
$var(ringDurationSec) = $Ts - $dlg_val(inviteStartTimestamp{s.int});