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*