<div dir="ltr">Hi Micheal,<div><br></div><div>You can use t_on_reply and then something like this:</div><div>      if (t_check_status("200")) {<br>         ..your db query          <br>      }</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>Regards,</div>
<div>Jehanzaib</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 27, 2022 at 9:22 AM Saint Michael <<a href="mailto:venefax@gmail.com">venefax@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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" rel="noreferrer" target="_blank">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>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>