Module: kamailio
Branch: master
Commit: ae6413a65b8c233eadd19706df6a69d7181ffd37
URL:
https://github.com/kamailio/kamailio/commit/ae6413a65b8c233eadd19706df6a69d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-14T10:30:41+01:00
core: updates to kemi callbacks for core routing blocks
---
Modified: onsend.h
Modified: receive.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ae6413a65b8c233eadd19706df6a69d…
Patch:
https://github.com/kamailio/kamailio/commit/ae6413a65b8c233eadd19706df6a69d…
---
diff --git a/onsend.h b/onsend.h
index 2f15663..cba56f4 100644
--- a/onsend.h
+++ b/onsend.h
@@ -86,7 +86,7 @@ static inline int run_onsend(struct sip_msg* orig_msg, struct dest_info*
dst,
if(unlikely(keng!=NULL)) {
bctx = sr_kemi_act_ctx_get();
sr_kemi_act_ctx_set(&ra_ctx);
- ret=keng->froute(orig_msg, ONSEND_ROUTE, NULL);
+ ret=keng->froute(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);
diff --git a/receive.c b/receive.c
index 11918ed..f2cdeeb 100644
--- a/receive.c
+++ b/receive.c
@@ -257,7 +257,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info*
rcv_info)
LM_ERR("no config routing engine registered\n");
goto error_req;
}
- if(keng->froute(msg, REQUEST_ROUTE, NULL)<0) {
+ if(keng->froute(msg, REQUEST_ROUTE, NULL, NULL)<0) {
LM_NOTICE("negative return code from engine function\n");
}
} else {
@@ -321,7 +321,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info*
rcv_info)
bctx = sr_kemi_act_ctx_get();
init_run_actions_ctx(&ctx);
sr_kemi_act_ctx_set(&ctx);
- ret = keng->froute(msg, CORE_ONREPLY_ROUTE, NULL);
+ ret = keng->froute(msg, CORE_ONREPLY_ROUTE, NULL, NULL);
sr_kemi_act_ctx_set(bctx);
} else {
ret=run_top_route(onreply_rt.rlist[DEFAULT_RT], msg, &ctx);