[sr-dev] git:master:a4b6a5cb: core: init cfg framework before executing event_route[core:worker-one-init]

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 18 08:37:19 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-18T08:35:51+02:00

core: init cfg framework before executing event_route[core:worker-one-init]

---

Modified: src/core/action.c

---

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

---

diff --git a/src/core/action.c b/src/core/action.c
index 821ef24749..2dd41a4d97 100644
--- a/src/core/action.c
+++ b/src/core/action.c
@@ -1670,6 +1670,9 @@ int run_child_one_init_route(void)
 		rt = route_get(&event_rt, evname.s);
 	}
 	if((keng!=NULL) || (rt>=0 && event_rt.rlist[rt]!=NULL)) {
+		if (cfg_child_init()) {
+			return -1;
+		}
 		LM_DBG("executing event_route[%s] (%d)\n", evname.s, rt);
 		if(faked_msg_init()<0)
 			return -1;




More information about the sr-dev mailing list