Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenSips 提供各种超时配置:http ://www.opensips.org/html/docs/modules/1.8.x/tm.html
如何测量收到 INVITE 和 200 OK 之间的时间(响铃持续时间)?有什么特殊功能吗?
我能够使用 $Ts 核心变量来解决这个问题。
i) 记录初始时间戳:
$dlg_val(inviteStartTimestamp) = $Ts;
ii) 当在回复路由中收到 200 OK 时,求以秒为单位的时间差:
$var(ringDurationSec) = $Ts - $dlg_val(inviteStartTimestamp{s.int});