Juha Heinanen writes:
For me it would be best and simplest if tracing of all
request and
responses would happen automatically when siptrace module is loaded and
suitable parameters are set and when tracing is turned on via an rpc
command, i.e., without any function calls in the config.
If that cannot be achived and a function call is needed, one must be
enough.
So, load siptrace module, set params appropriately, and call a function:
trace_request_or_response_if_tracing_is_enabled_by_rpc_command();
This function should not have any parameters, because they would need to
be parsed for vain if tracing is not enabled.
-- Juha