The ims_registrar_scscf module creates several processes for notification workers.
All this processes have random ranks.
It seems that the rank for all this processes has no special meaning and therefore the forking should be done using the PROC_NOCHLDINIT rank and not a random hardcoded one.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/974
Module: kamailio
Branch: master
Commit: 3e8589afcf75e7c93c5bcb9b4c4269c7b29774bd
URL: https://github.com/kamailio/kamailio/commit/3e8589afcf75e7c93c5bcb9b4c4269c…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2017-02-09T15:18:13-05:00
core: added PROC_XWORKER as an alias to PROC_RANK127
---
Modified: src/core/sr_module.h
---
Diff: https://github.com/kamailio/kamailio/commit/3e8589afcf75e7c93c5bcb9b4c4269c…
Patch: https://github.com/kamailio/kamailio/commit/3e8589afcf75e7c93c5bcb9b4c4269c…
---
diff --git a/src/core/sr_module.h b/src/core/sr_module.h
index 2317de5..e2bef74 100644
--- a/src/core/sr_module.h
+++ b/src/core/sr_module.h
@@ -180,11 +180,15 @@ typedef int (*param_func_t)( modparam_t type, void* val);
#define PROC_SIPROUTER 2 /**< First (pure) SIP worker - can be used to check
if just a normal sip router or initialize custom worker
processes by starting from this value */
-#define PROC_SIPRPC 127 /**< Used to init RPC worker as SIP commands
+#define PROC_RANK127 127 /**< Used to init RPC worker as SIP commands
handler. Don't do any special processing in the
child init with this rank - just bare child
initialization */
+#define PROC_SIPRPC PROC_RANK127
+
+#define PROC_XWORKER PROC_RANK127
+
#define PROC_MIN PROC_NOCHLDINIT /**< Minimum process rank */
This is for the people out there (me included) who don't want to install mysql to play with kamailio:
- comment out ``#!define WITH_DB_MYSQL`` (still used by default)
- set the right ``DB_TEXT_DIR``, to match ``kamailio_path/misc/examples/kemi/db_text`` (absolute path is needed; I tried with relative path and it did not work)
- add users/passwords by editing ``kamailio_path/misc/examples/kemi/db_text/subscriber`` file
Hope it's helpful. Enjoy!
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/930
-- Commit Summary --
* kamailio-basic-kemi.cfg: add WITH_DB_TEXT
-- File Changes --
A misc/examples/kemi/db_text/acc (1)
A misc/examples/kemi/db_text/address (1)
A misc/examples/kemi/db_text/bkp (1)
A misc/examples/kemi/db_text/missed_calls (1)
A misc/examples/kemi/db_text/subscriber (4)
A misc/examples/kemi/db_text/trusted (1)
A misc/examples/kemi/db_text/version (7)
M misc/examples/kemi/kamailio-basic-kemi.cfg (63)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/930.patchhttps://github.com/kamailio/kamailio/pull/930.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/930