Re: [reSIProcate-users] Callbacks on early receive/right before send through wire?
On 11/02/14 20:09, Jorge Bustamante wrote:
> Hi,
>
> Is there a callback to catch all incoming SIP messages right after being
> received by the corresponding Transport?
>
> In the same way... is there a callback to catch all outgoing SIP messages?
> besides decorateMessage(...), which needs the message to have an
> outboundDecorator attached?
>
> This is just for logging purposes so messages don't need to be modified.
I actually had thoughts about a similar feature, possibly keeping copies
of raw SIP messages in a ring buffer (on the /tmp RAM disk) for
troubleshooting after a crash.
The transport code for streams and datagrams is slightly different. To
log all incoming messages on streams (TCP, TLS, WS, WSS, ...) would
involve a small change to ConnectionBase.cxx perhaps