Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[siptrace] allow other modules to trace messages
A new api in siptrace module has been defined which allows tracing messages using any implemented trace protocol(currently only hep) in sip context(per message/transaction/dialog). This way tracing messages other than sip(log messages, rest, http) will be much easier to implement. Along with the new api, sip_trace function has been extended to accept another extra parameter which will specify the types of messages to be traced(by default only sip messages shall be traced). Modules that will implement the api have to register to siptrace module using an identifier which will be used by sip_trace function in order to identify the types of tracing that are enabled. Also initial trace api has been modified. After sending, the traced message won't be freed, leaving this posibility to the user.
- Loading branch information