[sr-dev] git:5.2:121282ac: topos: execute the kemi event route callbacks with context

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


Module: kamailio
Branch: 5.2
Commit: 121282ac4986d6389a6dd64c35b77337a4ca256b
URL: https://github.com/kamailio/kamailio/commit/121282ac4986d6389a6dd64c35b77337a4ca256b

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

topos: execute the kemi event route callbacks with context

(cherry picked from commit d2cb91dffc262060337f553b178dbeb5dedb3dfb)

---

Modified: src/modules/topoh/topoh_mod.c

---

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

---

diff --git a/src/modules/topoh/topoh_mod.c b/src/modules/topoh/topoh_mod.c
index 06f1bd9c41..c1a597eb1e 100644
--- a/src/modules/topoh/topoh_mod.c
+++ b/src/modules/topoh/topoh_mod.c
@@ -554,7 +554,7 @@ int th_execute_event_route(sip_msg_t *msg, sr_event_param_t *evp)
 		run_top_route(event_rt.rlist[_th_eventrt_outgoing], fmsg, &ctx);
 	} else {
 		if(keng!=NULL) {
-			if(sr_kemi_route(keng, fmsg, EVENT_ROUTE,
+			if(sr_kemi_ctx_route(keng, &ctx, fmsg, EVENT_ROUTE,
 						&_th_eventrt_callback, &_th_eventrt_name)<0) {
 				LM_ERR("error running event route kemi callback\n");
 				p_onsend=NULL;




More information about the sr-dev mailing list