[OpenSIPS-Users] opensips - graceful maintenance mode?
solarmon
solarmon at one-n.co.uk
Tue Jan 21 08:01:18 EST 2020
Hi Liviu,
Can the drain_mode code just be put at the very start of the route {} block?
Thank you
On Tue, 21 Jan 2020 at 12:29, Liviu Chircu <liviu at opensips.org> wrote:
> On 21.01.2020 14:21, solarmon wrote:
> > However, now I have checked our opensips.cfg script (that was created
> > for us) it looks like it has been hardcoded in:
> >
> > route[handle_pings]
> > {
> > # keepalive notifies replied ok
> > if ( is_method("NOTIFY|OPTIONS") && !has_totag() && $rU==NULL) {
> > send_reply("200", "OK");
> > exit;
> > }
> > }
> >
> Exactly! That's where the ping responses are generated. You should
> hook the "drain mode"
> login somewhere before that block.
>
> Best regards,
>
> --
> Liviu Chircu
> www.twitter.com/liviuchircu | www.opensips-solutions.com
>
> OpenSIPS Summit, Amsterdam, May 2020
> www.opensips.org/events
> OpenSIPS Bootcamp, Miami, March 2020
> www.opensips.org/training
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200121/399b96f6/attachment.html>
More information about the Users
mailing list