Module: kamailio
Branch: master
Commit: 1b9e1f788d3c4c8ebaf81e252d07fe3200ca37e8
URL: 
https://github.com/kamailio/kamailio/commit/1b9e1f788d3c4c8ebaf81e252d07fe3200ca37e8

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2017-06-25T10:04:53+02:00

topoh: documented event_callback parameter

---

Modified: src/modules/topoh/doc/topoh_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/1b9e1f788d3c4c8ebaf81e252d07fe3200ca37e8.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1b9e1f788d3c4c8ebaf81e252d07fe3200ca37e8.patch

---

diff --git a/src/modules/topoh/doc/topoh_admin.xml 
b/src/modules/topoh/doc/topoh_admin.xml
index 0d8bda5bb1..f421f8ce64 100644
--- a/src/modules/topoh/doc/topoh_admin.xml
+++ b/src/modules/topoh/doc/topoh_admin.xml
@@ -281,6 +281,36 @@ modparam("topoh", "uri_prefix_checks", 1)
 </programlisting>
                </example>
        </section>
+       <section id="topoh.p.event_callback">
+               <title><varname>event_callback</varname> (str)</title>
+               <para>
+                       The name of the function in the KEMI configuration file 
(embedded
+                       scripting language such as Lua, Python, ...) to be 
executed instead
+                       of event_route[...] blocks.
+               </para>
+               <para>
+                       The function receives a string parameter with the name 
of the event.
+               </para>
+               <para>
+               <emphasis>
+                       Default value is 'empty' (no function is executed for 
events).
+               </emphasis>
+               </para>
+               <example>
+               <title>Set <varname>event_callback</varname> parameter</title>
+               <programlisting format="linespecific">
+...
+modparam("topoh", "event_callback", "ksr_topoh_event")
+...
+-- event callback function implemented in Lua
+function ksr_topoh_event(evname)
+       KSR.info("===== topoh module triggered event: " .. evname .. "\n");
+       return 1;
+end
+...
+</programlisting>
+               </example>
+       </section>
        </section>
 
        <section>


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to