[sr-dev] git:master:9eafd82c: htable: execute the kemi event route callbacks with context

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 10 10:41:10 CEST 2019


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-04-10T10:15:09+02:00

htable: execute the kemi event route callbacks with context

---

Modified: src/modules/htable/htable.c

---

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

---

diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index 268241cf3c..4d70d6e317 100644
--- a/src/modules/htable/htable.c
+++ b/src/modules/htable/htable.c
@@ -288,7 +288,7 @@ static int child_init(int rank)
 			run_top_route(event_rt.rlist[rt], fmsg, &ctx);
 		} else {
 			if(keng!=NULL) {
-				if(sr_kemi_route(keng, fmsg, EVENT_ROUTE,
+				if(sr_kemi_ctx_route(keng, &ctx, fmsg, EVENT_ROUTE,
 							&ht_event_callback, &evname)<0) {
 					LM_ERR("error running event route kemi callback\n");
 					return -1;




More information about the sr-dev mailing list