The rpc command controls also if tracing is on/off even when using the sitrace flag/functions in routing block.
So trace_init_mode is about what should be initialized at startup, and indeed, if you use only trace_mode=1, then you can set trace_init_mode=1. In this way no callback to sl, tm or other modules are registered, ignoring as well the user avp and flag parameters. As a general remark, just careful not to disable init of the mode for using the function in routing blocks and actually doing it. Cheers, Daniel On 08.04.20 06:57, Juha Heinanen wrote: > So if tracing is controlled only by rpc commands, then trace_init_mode > can have value 1? > > -- Juha > >> + 1 - module initialized to do tracing only with >> core callback >> + functions (see also 'trace_mode' parameter). > _______________________________________________ > Kamailio (SER) - Development Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
