Hi, I think you are looking for cfg_rpc: http://www.kamailio.net/docs/modules/5.0.x/modules/cfg_rpc.html
HTH Sebastian On Thu, Aug 31, 2017 at 12:53 PM, Karsten Horsmann <[email protected]> wrote: > Hello, > > > at this moment i try to figure out the best way to add an "switch" for > debug/log output. > I use many xlog, like everyone that starts with kamailio too. > > Then i go further and add #!ifdef cases around to switch this via #!define. > > Is there any other way to turn on/off my "debug"-logging on the fly, while > kamailio is still running? > > > > #!define TESTBED_MODE > > request_route{ > ... > #!ifdef TESTBED_MODE > route(DEBUG); > #!endif > > ... > #!ifdef TESTBED_MODE > xlog("L_INFO","---FIX_SIPS-after: ru:($ru)"); > #!endif > ... > } > > -- > Kind Regards > *Karsten Horsmann* > > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
