Module: kamailio
Branch: master
Commit: 90ee1c6684495a6050e002d228a434e00274dd1b
URL: 
https://github.com/kamailio/kamailio/commit/90ee1c6684495a6050e002d228a434e00274dd1b

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-07-21T12:42:32+02:00

sipdump: docs for parameter wait_mode

---

Modified: src/modules/sipdump/doc/sipdump_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/90ee1c6684495a6050e002d228a434e00274dd1b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/90ee1c6684495a6050e002d228a434e00274dd1b.patch

---

diff --git a/src/modules/sipdump/doc/sipdump_admin.xml 
b/src/modules/sipdump/doc/sipdump_admin.xml
index 3bcdc31fc46..f8627d192b6 100644
--- a/src/modules/sipdump/doc/sipdump_admin.xml
+++ b/src/modules/sipdump/doc/sipdump_admin.xml
@@ -123,7 +123,8 @@ modparam("sipdump", "mode", 3)
        <section id="sipdump.p.wait">
                <title><varname>wait</varname> (int)</title>
                <para>
-                       Wait time (microseconds) when no SIP traffic is 
received.
+                       Wait time (microseconds) when no SIP traffic is received
+                       (for wait_time = 0).
                </para>
                <para>
                <emphasis>
@@ -136,6 +137,29 @@ modparam("sipdump", "mode", 3)
 ...
 modparam("sipdump", "wait", 2000)
 ...
+</programlisting>
+               </example>
+       </section>
+       <section id="sipdump.p.wait_mode">
+               <title><varname>wait_mode</varname> (int)</title>
+               <para>
+                       If set to 1, the module uses a pthread mutex and 
contion to signal
+                       when SIP messages are available to the writer process. 
It should
+                       use less CPU when idle (on no SIP traffic) than the 
default pooling
+                       on timer, but be sure that the OS supports 
process-shared pthread
+                       mutexes and conditions (latest Linux distros have 
support for them).
+               </para>
+               <para>
+               <emphasis>
+                       Default value is 0.
+               </emphasis>
+               </para>
+               <example>
+               <title>Set <varname>wait_mode</varname> parameter</title>
+               <programlisting format="linespecific">
+...
+modparam("sipdump", "wait_mode", 1)
+...
 </programlisting>
                </example>
        </section>
@@ -360,4 +384,3 @@ route[TCLEAN] {
        </section>
 
 </chapter>
-

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to