[NEW] SIPtrace enhancement

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[NEW] SIPtrace enhancement

Bogdan-Andrei Iancu
Hi,

The siptrace module is now able to automatically trace a whole dialog -
to trace all requests and replies from a dialog, with a single call of a
function.

The new "trace_dialog()" function, if called for the initial request,
will automatically create the dialog and trigger the tracing for all
messages from the dialog.

Usage:
    if (is_method("INVITE") && !has_totag() ) {
       trace_dialog()
    }


There is no need to set other flags or to call other tracing function -
such use the trace_dialog() and everything will be automatically done.

To implement such functionality, the siptrace module needs to use the
dialog module. To keep backward compatibility, the siptrace module
requires the dialog module only if the trace_dialog() function is used.
If not used, no dependency will be required.


Also see:
    http://www.opensips.org/html/docs/modules/devel/siptrace.html#id228297


Regards,
Bogdan

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [NEW] SIPtrace enhancement

Brett Nemeroff
This is great! Thanks for this... very useful..
-Brett


On Tue, Jan 27, 2009 at 6:07 AM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi,

The siptrace module is now able to automatically trace a whole dialog -
to trace all requests and replies from a dialog, with a single call of a
function.

The new "trace_dialog()" function, if called for the initial request,
will automatically create the dialog and trigger the tracing for all
messages from the dialog.

Usage:
   if (is_method("INVITE") && !has_totag() ) {
      trace_dialog()
   }


There is no need to set other flags or to call other tracing function -
such use the trace_dialog() and everything will be automatically done.

To implement such functionality, the siptrace module needs to use the
dialog module. To keep backward compatibility, the siptrace module
requires the dialog module only if the trace_dialog() function is used.
If not used, no dependency will be required.


Also see:
   http://www.opensips.org/html/docs/modules/devel/siptrace.html#id228297


Regards,
Bogdan

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users