<div dir="auto">Thank you for the clarification. <div dir="auto">But then how do you intercept the Connect?</div><div dir="auto">Where in the code?</div><div dir="auto">I need to fire a db query when the call connects.</div><div dir="auto">Is this even possible?</div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 26, 2022, 10:51 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
please see <br>
<a href="https://www.opensips.org/Documentation/Script-Routes-3-2#local_route" rel="noreferrer noreferrer" target="_blank">https://www.opensips.org/Documentation/Script-Routes-3-2#local_route</a> - <br>
the local route is triggered only for internally generated (UAC) <br>
requests, so you will never have replies over there.<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
<a href="https://www.opensips-solutions.com" rel="noreferrer noreferrer" target="_blank">https://www.opensips-solutions.com</a><br>
OpenSIPS Bootcamp 5-16 Dec 2022, online<br>
<a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" rel="noreferrer noreferrer" target="_blank">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a><br>
<br>
On 10/26/22 5:28 AM, Saint Michael wrote:<br>
> Dear Friends<br>
> local_route<br>
> {<br>
> if (is_method("200"))<br>
> {<br>
> }<br>
> }<br>
><br>
> I need to intercept the code at the moment when a call connects, so I<br>
> may notify that information to the database. What specific code can I<br>
> use inside a Local Route so the 200 OK corresponds with a real<br>
> connection and not any other kind of 200?<br>
> Is this doable?<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote></div>