[OpenSIPS-Devel] Contribution: New function in siptrace module
Dan Pascu
dan at ag-projects.com
Mon Oct 27 19:51:03 CET 2008
The siptrace module already has the ability to record messages for a given
user, by setting an AVP. That avp can be read from a property in the
subscriber table (automatically loaded when the subscriber is loaded or
by putting a subscriber in a group or by loading it explicitly from a
different table). The real problem is not the inability to do this
already, is the fact that is difficult to do it for all messages within
dialog. By making the siptrace module work on top of the dialog module to
automatically trigger tracing all messages within a dialog once the
dialog was marked for tracing, this issue should be solved.
So what does you approach add in addition to the existing behavior that
cannot be done already?
On Monday 27 October 2008, Sergio Gutierrez wrote:
> 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
--
Dan
More information about the Devel
mailing list