Mike, I accomplish this with the gflags module. I define a flag for maintenance, say flag 1. I check to see if gflag 1 is set early in the script but after handling any in-dialog requests. If it is set, I return a 503 and leave it to the client to go to the next server. If it is not set, I process the call as normal.
If you wanted to have server-side control of where the call goes, you may be able to use a 302 instead. I set the flag with opensipsctl fifo set_gflags. - Jeff On Mon, Nov 10, 2014 at 12:14 PM, Mike Kane <[email protected]> wrote: > Hello all, is there a concept of placing Opensips in maintenance mode > where all ongoing call will be processed, but any new requests will be > diverted to another instance of Opensips. I thought I had read a thread on > this in relation to the DR module at one point. > > Thanks Mike > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
