[OpenSIPS-Devel] Contribution: New function in siptrace module

Sergio Gutierrez saguti at gmail.com
Mon Oct 27 09:06:35 CET 2008


Hello to all members in the list.

I would like to put on your consideration a contribution for the siptrace
module;

My contribution consists in adding two new functions to module; this
contribution in particular is a new function called sip_trace_user();

This function would enable the trace of the sip requests originated from a
particular user, in the same as sip_trace() does it in a global way.  The
param trace_user has to be defined as 1 to enable the feature.
The list of traced users would be stored on a table in database, and this
list could be reloaded or cleared at execution time, by MI commands.
sip_trace_user() uses the existing logic within the module, and it was only
necessary implement helper functions for FROM USER URI manipulation, and the
ones required to handle the list (load , clear and reload).

In the way that the function is currently implemented, it is limited to 512
traced users simultaneously; the modification of this limit would have to be
performed at compilation time.

The feature request has been registered on the tracker with the number
2200068. Currently, the function is in BETA state, but it is completely
functional, and I have tested it on OpenSIPS trunk version. It is pending to
implement the MI commands to enable/disable the tracing, and a command to
clear the traced users list.

I would thank any comments, corrections or suggestions you have regarding to
this contribution. As it is my first one, I think there must be a lot of
things to improve.

Thanks in advance all for your attention.

Best regards.

Sergio Gutierrez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/devel/attachments/20081027/c2e070c2/attachment.htm 


More information about the Devel mailing list