Module: kamailio
Branch: master
Commit: a0fee0d8a0a23934f9832b50aa753d03adb694a3
URL:
https://github.com/kamailio/kamailio/commit/a0fee0d8a0a23934f9832b50aa753d0…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: 2015-01-22T14:16:33+02:00
ims_registrar_pcscf: Only initialize child process, if subscribe to reg is enabled.
---
Modified: modules/ims_registrar_pcscf/reg_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a0fee0d8a0a23934f9832b50aa753d0…
Patch:
https://github.com/kamailio/kamailio/commit/a0fee0d8a0a23934f9832b50aa753d0…
---
diff --git a/modules/ims_registrar_pcscf/reg_mod.c
b/modules/ims_registrar_pcscf/reg_mod.c
index 9d50862..8eede00 100644
--- a/modules/ims_registrar_pcscf/reg_mod.c
+++ b/modules/ims_registrar_pcscf/reg_mod.c
@@ -318,7 +318,7 @@ static int child_init(int rank)
{
LM_DBG("Initialization of module in child [%d] \n", rank);
- if (rank == PROC_MAIN) {
+ if ((subscribe_to_reginfo == 1) && (rank == PROC_MAIN)) {
LM_DBG("Creating RegInfo Event Processor process\n");
int pid = fork_process(PROC_SIPINIT, "RegInfo Event Processor", 1);
if (pid < 0)