[OpenSIPS-Users] opensips - graceful maintenance mode?

Liviu Chircu liviu at opensips.org
Tue Jan 21 07:28:20 EST 2020


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




More information about the Users mailing list