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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2019-02-26T18:42:23+01:00

core: use kemi exec route wrapper for onsend_route and child one init event

---

Modified: src/core/action.c
Modified: src/core/onsend.h

---

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

---

diff --git a/src/core/action.c b/src/core/action.c
index ca5586153b..83b1f708cd 100644
--- a/src/core/action.c
+++ b/src/core/action.c
@@ -1685,7 +1685,7 @@ int run_child_one_init_route(void)
                } else {
                        bctx = sr_kemi_act_ctx_get();
                        sr_kemi_act_ctx_set(&ctx);
-                       if(keng->froute(fmsg, EVENT_ROUTE,
+                       if(sr_kemi_route(keng, fmsg, EVENT_ROUTE,
                                                &kemi_event_route_callback, 
&evname)<0) {
                                LM_ERR("error running event route kemi 
callback\n");
                                return -1;
diff --git a/src/core/onsend.h b/src/core/onsend.h
index 90dbf8c8f0..e435a27f0a 100644
--- a/src/core/onsend.h
+++ b/src/core/onsend.h
@@ -93,7 +93,7 @@ static inline int run_onsend(sip_msg_t* orig_msg, 
dest_info_t* dst,
                        if(keng) {
                                bctx = sr_kemi_act_ctx_get();
                                sr_kemi_act_ctx_set(&ra_ctx);
-                               ret=keng->froute(orig_msg, ONSEND_ROUTE, NULL, 
NULL);
+                               ret=sr_kemi_route(keng, orig_msg, ONSEND_ROUTE, 
NULL, NULL);
                                sr_kemi_act_ctx_set(bctx);
                        } else {
                                ret=run_actions(&ra_ctx, 
onsend_rt.rlist[DEFAULT_RT], orig_msg);


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to