<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi MS,<br>
<br>
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.<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 27-30 Sept 2022, Athens
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2022Athens/">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
<div class="moz-cite-prefix">On 7/10/22 9:23 PM, M S wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAEZrhoMzfEjuPr41GAwH+wT2z67dgnSGXndwEbRt+nvV5-DBtw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all,
<div>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.</div>
<div>My questions are:</div>
<div>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</div>
<div>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 onreply.</div>
<div><br>
</div>
<div>Thank you!</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>