[sr-dev] git:master:5ad3bd2f: modules: readme files regenerated - htable ... [skip ci]

Kamailio Dev kamailio.dev at kamailio.org
Thu Feb 11 17:46:18 CET 2021


Module: kamailio
Branch: master
Commit: 5ad3bd2f72515c532ef004adfd9cebaf4e483105
URL: https://github.com/kamailio/kamailio/commit/5ad3bd2f72515c532ef004adfd9cebaf4e483105

Author: Kamailio Dev <kamailio.dev at kamailio.org>
Committer: Kamailio Dev <kamailio.dev at kamailio.org>
Date: 2021-02-11T17:46:11+01:00

modules: readme files regenerated - htable ... [skip ci]

---

Modified: src/modules/htable/README

---

Diff:  https://github.com/kamailio/kamailio/commit/5ad3bd2f72515c532ef004adfd9cebaf4e483105.diff
Patch: https://github.com/kamailio/kamailio/commit/5ad3bd2f72515c532ef004adfd9cebaf4e483105.patch

---

diff --git a/src/modules/htable/README b/src/modules/htable/README
index ca193e2213..85f19c7102 100644
--- a/src/modules/htable/README
+++ b/src/modules/htable/README
@@ -1165,6 +1165,16 @@ kamcmd htable.stats
    items in hash tables. The event route is executed only once, after core
    and module initialization, but before Kamailio forks any child
    processes.
+
+   Note: do not expect to use functions from all other modules here, even
+   if they are loaded before the htable module, because many of them
+   initialize their runtime structures inside child init callbacks, which
+   are executed after this moment, when forking child processes. For
+   example, sqlops cannot be used, connections to database are initialized
+   in child init. Even more, it is recommended not to use functions from
+   other modules, because it can mess up what they created in mod init
+   callback and expect in child init callback. It should be ok to use
+   functions from htable module or assignment operations.
 ...
 event_route[htable:mod-init] {
     $sht(a=>x) = 1;




More information about the sr-dev mailing list