<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
As per docs [1], you have in event_route :<br>
<br>
id - represents the identifier of the call for which that event
was received.<br>
<br>
is_callid - is 0 if the id parameter represents the Dialog ID, or
1 if it is a callid. <br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.2.x/rtpproxy.html#event_E_RTPPROXY_DTMF">https://opensips.org/html/docs/modules/3.2.x/rtpproxy.html#event_E_RTPPROXY_DTMF</a><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 9/14/22 10:46 AM, Saint Michael
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAC9cSOCE8Yq3JR17+X63S3KhLxE69WgyksmLWzjj4XbT04SZCQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><span
class="gmail_default" style="font-size:small">My goal is
to close the call as soon as the callee presses any DTMF</span></blockquote>
<div><span class="gmail_default" style="font-size:small">when
any DTMF is detected, then I need to access the callID
variable, </span> <span class="gmail_default"
style="font-size:small">$ci</span></div>
<div><span class="gmail_default" style="font-size:small">but
it's nowhere to be found</span></div>
<div><span class="gmail_default" style="font-size:small">Also
I need $avp(start_time) and $avp(duration)</span></div>
<div><span class="gmail_default" style="font-size:small">I am
at a loss as to how to retrieve this information. The call
is connected</span></div>
<div><span class="gmail_default" style="font-size:small">I
need to fire a database query to close the call.</span></div>
<div>
<div class="gmail_default" style="font-size:small">I imagine
that when the call got connected, some variable stored
that unix-time .</div>
<div class="gmail_default" style="font-size:small">But it
does not seem to be available in this part of the code.</div>
<div class="gmail_default" style="font-size:small">Philip</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<br>
</div>
<div><span class="gmail_default" style="font-size:small"><br>
</span></div>
<div><span class="gmail_default" style="font-size:small"><br>
</span></div>
<div><span class="gmail_default" style="font-size:small"><br>
</span></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><span
class="gmail_default" style="font-size:small"></span><br>
</blockquote>
</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>