<div dir="ltr"><div dir="ltr">  Hi Liviu,<div><br></div><div>Actually, it looks like in our script we have route(handle_pings) called right at the start.</div><div><br></div><div>route{<br><br>        route(handle_pings);<br></div><div><br></div><div>Thus, for the drain_mode code to work, doesn't it needs to be before 

 route(handle_pings)?</div><div><br></div><div>Thank you.</div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 21 Jan 2020 at 13:06, 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 15:01, solarmon wrote:<br>
> Can the drain_mode code just be put at the very start of the route {} <br>
> block?<br>
<br>
If you don't mind letting SIP scanners know when you're doing <br>
maintenance, sure.<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></div>