[sr-dev] git:master:a383027e: topos: set context when executing event route
Daniel-Constantin Mierla
miconda at gmail.com
Tue Apr 9 13:06:15 CEST 2019
Module: kamailio
Branch: master
Commit: a383027eae25e63a779ecf9377facefdd2e05ef6
URL: https://github.com/kamailio/kamailio/commit/a383027eae25e63a779ecf9377facefdd2e05ef6
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-04-09T13:04:19+02:00
topos: set context when executing event route
- should fix detection of using KSR.drop()
- reported by GH #1924
---
Modified: src/modules/topos/topos_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/a383027eae25e63a779ecf9377facefdd2e05ef6.diff
Patch: https://github.com/kamailio/kamailio/commit/a383027eae25e63a779ecf9377facefdd2e05ef6.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