core: updates to kemi callbacks for core routing blocks
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 14 Nov 2016 09:30:41 +0000 (10:30 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 14 Nov 2016 09:30:41 +0000 (10:30 +0100)
onsend.h
receive.c

index 2f15663..cba56f4 100644 (file)
--- 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);
index 11918ed..f2cdeeb 100644 (file)
--- 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);