[OpenSIPS-Users] Dialog ping question
bogdan at opensips.org
Tue Aug 9 09:05:20 UTC 2022
You can use the Call-ID to correlate with the dialog. For example, use
the localcache to store (when creating the dialog) a record having as
key the call-id of the call and as value the time to start. In the
generic on_reply you can look for that records into localcache and to
the math for the duration.
OpenSIPS Founder and Developer
OpenSIPS Summit 27-30 Sept 2022, Athens
On 7/10/22 9:23 PM, M S wrote:
> Hi all,
> I need to catch the replies to OPTIONS (ping) packets that
> Create_dialog("Pp") sends to both sides, and then based on response
> code and some other transaction information, i.e. I need to calculate
> the call length (from pick up till that moment) to send
> Interim-Updates to RADIUS.
> My questions are:
> 1. How do I check for those internal OPTIONS replies? I can see
> replies in a global onreply_route, but there is no transaction level
> information there
> 2. How do I calculate the call length? I assume if #1 above is fixed,
> I can store answer time in a variable and then calculate length in
> Thank you!
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users