Module: kamailio
Branch: master
Commit: 21c7066842a034d8674e5fac2b7c6fd38b0073e8
URL: 
https://github.com/kamailio/kamailio/commit/21c7066842a034d8674e5fac2b7c6fd38b0073e8

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-11-04T11:38:50+01:00

timer: docs - updates to examples

---

Modified: src/modules/timer/doc/timer.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/21c7066842a034d8674e5fac2b7c6fd38b0073e8.diff
Patch: 
https://github.com/kamailio/kamailio/commit/21c7066842a034d8674e5fac2b7c6fd38b0073e8.patch

---

diff --git a/src/modules/timer/doc/timer.xml b/src/modules/timer/doc/timer.xml
index e22d65341c2..cbfb23941fe 100644
--- a/src/modules/timer/doc/timer.xml
+++ b/src/modules/timer/doc/timer.xml
@@ -224,14 +224,14 @@ if (@timer.executed != "") {
                        <title>Common example using timer module</title>
                        <programlisting>
 ...
-loadmodule "modules/xprint/xprint.so"
-loadmodule "modules/timer/timer.so"
+loadmodule "xlog.so"
+loadmodule "timer.so"
 
 modparam("timer", "declare_timer", "tmr1=ONTIMER,1000");
 modparam("timer", "declare_timer", "tmr2=ONTIMER2,2000,slow,enable");
 
 route["print"] {
-       xplog("L_INFO", "fired: %@timer.executed\n");
+       xlog("fired: $sel(@timer.executed)\n");
 }
 
 route["ONTIMER"] {
@@ -276,22 +276,22 @@ end
                        <programlisting>
 ...
 loadmodule "timer";
-loadmodule "xprint";
+loadmodule "xlog";
 
 modparam("timer", "declare_timer", "TIMER_TEST=TEST,100,,enable");
 
 request_route {
-       xplog("L_E","main route");
+       xlog("main route");
 }
 
 route[TEST] {
        timer_enable("TIMER_TEST", "0");
-       xplog("L_E","test start\n");
+       xlog("test start\n");
 
        # add here tested functionality
 
-       xplog("L_E","test end\n");
-       }
+       xlog("test end\n");
+}
 ...
                        </programlisting>
 
@@ -299,4 +299,3 @@ route[TEST] {
        </section>
     </chapter>
 </book>
-

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to