Skip to content

Commit

Permalink
Added Caller/callee only SIP tracing.
Browse files Browse the repository at this point in the history
Using the new "C" and "c" control flags, the tracing may capture only the caller or calle related traffic.
  • Loading branch information
bogdan-iancu committed Apr 6, 2021
1 parent 50858e8 commit 197dd6a
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 55 deletions.
17 changes: 16 additions & 1 deletion modules/tracer/doc/tracer_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ modparam("tracer", "trace_id",
<title>Exported Functions</title>
<section id="func_trace" xreflabel="trace()">
<title>
<function moreinfo="none">trace(trace_id, [scope], [type], [trace_attrs], [correlation_id])</function>
<function moreinfo="none">trace(trace_id, [scope], [type], [trace_attrs], [flags], [correlation_id])</function>
</title>
<para>This function has replaced the <emphasis>sip_trace()</emphasis> in &osips; 3.0.</para>
<para>
Expand Down Expand Up @@ -285,6 +285,21 @@ modparam("tracer", "trace_id",
shall be stored in the trace_attrs column in the sip_trace table.
</para>
</listitem>
<listitem>
<para><emphasis>flags (string,pvar)</emphasis> are some control
flags over the tracing process (how and what to be traced).
</para>
<itemizedlist>
<listitem>
<para><emphasis>C</emphasis> - trace only the SIP caller side;</para>
</listitem>
<listitem>
<para><emphasis>c</emphasis> - trace onlt the SIP callee side;</para>
</listitem>
</itemizedlist>
<para>If both <emphasis>C</emphasis> and <emphasis>c</emphasis> flags are missing, tracing of both sides/legs is assumed.</para>
</listitem>

<listitem>
<para><emphasis>correlation_id (string,pvar)</emphasis> a custom
SIP correlation ID to be forced (normally the SIP Call-ID is used)
Expand Down
Loading

0 comments on commit 197dd6a

Please sign in to comment.