Hello to all members in the list.<br><br>I would like to put on your consideration a contribution for the siptrace module; <br><br>My contribution consists in adding two new functions to module; this contribution in particular is a new function called sip_trace_user();<br>
<br>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.&nbsp; The param trace_user has to be defined as 1 to enable the feature.<br>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.<br>
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).<br><br>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.<br>
<br>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.<br>
<br>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. <br><br>Thanks in advance all for your attention.<br>
<br>Best regards.<br><br>Sergio Gutierrez<br><br>