Module: kamailio
Branch: master
Commit: 47bd211da1474d8addbaf1df86627e11bb221ff4
URL:
https://github.com/kamailio/kamailio/commit/47bd211da1474d8addbaf1df86627e1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-06-19T15:09:51+02:00
sipdump: docs - usage remarks about cleaning generated files
---
Modified: src/modules/sipdump/doc/sipdump_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/47bd211da1474d8addbaf1df86627e1…
Patch:
https://github.com/kamailio/kamailio/commit/47bd211da1474d8addbaf1df86627e1…
---
diff --git a/src/modules/sipdump/doc/sipdump_admin.xml
b/src/modules/sipdump/doc/sipdump_admin.xml
index 1a3e1db271..3bdc59c965 100644
--- a/src/modules/sipdump/doc/sipdump_admin.xml
+++ b/src/modules/sipdump/doc/sipdump_admin.xml
@@ -294,5 +294,30 @@ event_route[sipdump:msg] {
</section>
</section>
+ <section>
+ <title>Usage Remarks</title>
+ <section id="sipdump.x.usage-remarks">
+ <para>
+ Note that the files with the SIP traffic and metadata are not deleted
+ by the module itself. They have to be deleted explicitely by other
+ means, such as cron.d job, or using rtimer and exec modules. Next
+ examples shows how to delete the files older than 2 days using
+ &kamailio; modules.
+ </para>
+<programlisting format="linespecific">
+...
+loadmodule "rtimer.so
+loadmodule "exec.so
+...
+modparam("rtimer", "timer",
"name=tjobs;interval=300;mode=1;")
+modparam("rtimer", "exec", "timer=tjobs;route=TCLEAN")
+...
+route[TCLEAN] {
+ exec_cmd("find /tmp -type f -name kamailio-sipdump-* -mtime +1 -delete
&");
+}
+...
+</programlisting>
+ </section>
+
</chapter>