Module: kamailio
Branch: master
Commit: eb3a09fb92af939372ac292f14850c13f8232df6
URL:
https://github.com/kamailio/kamailio/commit/eb3a09fb92af939372ac292f14850c1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-10T10:18:38+02:00
siptrace: docs for trace_db_mode parameter
---
Modified: src/modules/siptrace/doc/siptrace_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/eb3a09fb92af939372ac292f14850c1…
Patch:
https://github.com/kamailio/kamailio/commit/eb3a09fb92af939372ac292f14850c1…
---
diff --git a/src/modules/siptrace/doc/siptrace_admin.xml
b/src/modules/siptrace/doc/siptrace_admin.xml
index cc6ead1132..56d69cb95b 100644
--- a/src/modules/siptrace/doc/siptrace_admin.xml
+++ b/src/modules/siptrace/doc/siptrace_admin.xml
@@ -427,17 +427,45 @@ modparam("siptrace", "hep_version", 3)
...
modparam("siptrace", "hep_capture_id", 234)
...
+</programlisting>
+ </example>
+ </section>
+ <section id="siptrace.p.trace_db_mode">
+ <title><varname>trace_db_mode</varname>
(integer)</title>
+ <para>
+ If set to 1, the module uses <quote>INSERT DELAYED</quote> to
+ store to database (when it is available, otherwise falls back
+ to <quote>INSERT</quote>).
+ </para>
+ <para>
+ If set to 2, the module uses <quote>ASYNC-INSERT</quote> to
+ store to database (when it is available, otherwise falls back
+ to <quote>INSERT</quote>).
+ </para>
+ <para>
+ Default value is <emphasis>0 (use
<quote>INSERT</quote>)</emphasis>.
+ </para>
+ <example>
+ <title>Set <varname>trace_db_mode</varname>
+ parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("siptrace", "trace_db_mode", 1)
+...
</programlisting>
</example>
</section>
<section id="siptrace.p.trace_delayed">
<title><varname>trace_delayed</varname>
(integer)</title>
+ <para>
+ Kept for backward compatibily, use trace_db_mode instead.
+ </para>
<para>
- Use <quote>INSERT DELAYED</quote> to store to database when it is
available,
- instead of <quote>INSERT</quote>.
+ If set to non-zero, ot sets trace_db_mode paremter to 1
+ when the module is initialized.
</para>
<para>
- Default value is <emphasis>0 (off)</emphasis>.
+ Default value is <emphasis>0</emphasis>.
</para>
<example>
<title>Set <varname>trace_delayed</varname>