From 23b65718462a6bbc860fe7b4159d3c7aac34d3b8 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 26 Feb 2019 18:37:30 +0100 Subject: [PATCH] core: use kemi exec route wrapper for onsend_route and child one init event --- src/core/action.c | 2 +- src/core/onsend.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/action.c b/src/core/action.c index ca5586153b2..83b1f708cde 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 90dbf8c8f06..e435a27f0a9 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);