[sr-dev] git:5.2:d82a6cd4: topos: set context when executing event route

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


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

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

topos: set context when executing event route

- should fix detection of using KSR.drop()
- reported by GH #1924

(cherry picked from commit a383027eae25e63a779ecf9377facefdd2e05ef6)

---

Modified: src/modules/topos/topos_mod.c

---

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

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index e13029db54..f6b6a3a2f5 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -521,7 +521,7 @@ static int tps_execute_event_route(sip_msg_t *msg, sr_event_param_t *evp,
 		run_top_route(event_rt.rlist[evidx], (msg)?msg:fmsg, &ctx);
 	} else {
 		if(keng!=NULL) {
-			if(sr_kemi_route(keng, (msg)?msg:fmsg, EVENT_ROUTE,
+			if(sr_kemi_ctx_route(keng, &ctx, (msg)?msg:fmsg, EVENT_ROUTE,
 						&_tps_eventrt_callback, evname)<0) {
 				LM_ERR("error running event route kemi callback\n");
 				p_onsend=NULL;




More information about the sr-dev mailing list