Module: kamailio
Branch: master
Commit: e72a41906da417cedb81ef8216c3c084fbb4902d
URL:
https://github.com/kamailio/kamailio/commit/e72a41906da417cedb81ef8216c3c08…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-05-03T21:19:59+02:00
htable: docs for event_callback_mode parameter
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/e72a41906da417cedb81ef8216c3c08…
Patch:
https://github.com/kamailio/kamailio/commit/e72a41906da417cedb81ef8216c3c08…
---
diff --git a/src/modules/htable/doc/htable_admin.xml
b/src/modules/htable/doc/htable_admin.xml
index d10a5ff2c8..00f7a6eb41 100644
--- a/src/modules/htable/doc/htable_admin.xml
+++ b/src/modules/htable/doc/htable_admin.xml
@@ -701,6 +701,30 @@ function ksr_htable_event(evname)
return 1;
end
...
+</programlisting>
+ </example>
+ </section>
+ <section id="htable.p.event_callback_mode">
+ <title><varname>event_callback_mode</varname> (int)</title>
+ <para>
+ Control when event_route[htable:init] is executed: 0 - after all
+ modules were initialized; 1 - in first worker process.
+ </para>
+ <para>
+ Set it to 1 if used in a KEMI script or when needing to use database
+ (e.g., via sqlops) inside event_route[htable:init].
+ </para>
+ <para>
+ <emphasis>
+ Default value is 0.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>event_callback_mode</varname>
parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("htable", "event_callback_mode", 1)
+...
</programlisting>
</example>
</section>