<div dir="ltr">Hi Liviu,<div><br></div><div>Can the drain_mode code just be put at the very start of the route {} block?</div><div><br></div><div>Thank you</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 21 Jan 2020 at 12:29, Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@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">On 21.01.2020 14:21, solarmon wrote:<br>
> However, now I have checked our opensips.cfg script (that was created <br>
> for us) it looks like it has been hardcoded in:<br>
><br>
> route[handle_pings]<br>
> {<br>
>         # keepalive notifies replied ok<br>
>         if ( is_method("NOTIFY|OPTIONS") && !has_totag() && $rU==NULL) {<br>
>                 send_reply("200", "OK");<br>
>                 exit;<br>
>         }<br>
> }<br>
><br>
Exactly!  That's where the ping responses are generated.  You should <br>
hook the "drain mode"<br>
login somewhere before that block.<br>
<br>
Best regards,<br>
<br>
-- <br>
Liviu Chircu<br>
<a href="http://www.twitter.com/liviuchircu" rel="noreferrer" target="_blank">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">www.opensips-solutions.com</a><br>
<br>
OpenSIPS Summit, Amsterdam, May 2020<br>
   <a href="http://www.opensips.org/events" rel="noreferrer" target="_blank">www.opensips.org/events</a><br>
OpenSIPS Bootcamp, Miami, March 2020<br>
   <a href="http://www.opensips.org/training" rel="noreferrer" target="_blank">www.opensips.org/training</a><br>
<br>
<br>
_______________________________________________<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>