[SR-Users] gracefuly stop kamailio
Carsten Bock
carsten at ng-voice.com
Thu Nov 24 11:54:15 CET 2011
Hi,
what i do is the following (for 3.2):
I've added a parameter in my config:
system.shutdownmode = 0 desc "System shutdown mode"
and in the routing, just after the processing of subsequential
requests (e.g. BYE's, Re-INVITE's, etc.), i've added the following to
my config:
# Check for shutdown mode:
if ($sel(cfg_get.system.shutdownmode) > 0) {
send_reply("503", "Server shutting down");
exit;
}
With this, i can set my proxy to not accepting any new calls while
waiting for the active calls to terminate.
More information about the sr-users
mailing list