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 khorsmann@gmail.com 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 sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users