tm: extended the kemi callbacks after updates to prototype
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 14 Nov 2016 09:31:10 +0000 (10:31 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 14 Nov 2016 09:31:10 +0000 (10:31 +0100)
modules/tm/t_fwd.c
modules/tm/t_reply.c

index 2ccac64..75286ae 100644 (file)
@@ -348,7 +348,7 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
                                        init_run_actions_ctx(&ctx);
                                        sr_kemi_act_ctx_set(&ctx);
                                        if(keng->froute(i_req, BRANCH_ROUTE,
-                                                               sr_kemi_cbname_lookup_idx(branch_route))<0) {
+                                                       sr_kemi_cbname_lookup_idx(branch_route), NULL)<0) {
                                                LM_ERR("error running branch route kemi callback\n");
                                        }
                                        sr_kemi_act_ctx_set(bctx);
index 48c3d22..c577509 100644 (file)
@@ -944,7 +944,7 @@ int run_failure_handlers(struct cell *t, struct sip_msg *rpl,
                        keng = sr_kemi_eng_get();
                        if(unlikely(keng!=NULL)) {
                                if(keng->froute(&faked_req, FAILURE_ROUTE,
-                                               sr_kemi_cbname_lookup_idx(on_failure))<0) {
+                                               sr_kemi_cbname_lookup_idx(on_failure), NULL)<0) {
                                        LM_ERR("error running failure route kemi callback\n");
                                }
                        } else {
@@ -1013,7 +1013,7 @@ int run_branch_failure_handlers(struct cell *t, struct sip_msg *rpl,
                        keng = sr_kemi_eng_get();
                        if(unlikely(keng!=NULL)) {
                                if(keng->froute(&faked_req, BRANCH_FAILURE_ROUTE,
-                                               sr_kemi_cbname_lookup_idx(on_branch_failure))<0) {
+                                               sr_kemi_cbname_lookup_idx(on_branch_failure), NULL)<0) {
                                        LM_ERR("error running branch failure route kemi callback\n");
                                }
                        } else {
@@ -2304,7 +2304,7 @@ int reply_received( struct sip_msg  *p_msg )
                        init_run_actions_ctx(&ctx);
                        sr_kemi_act_ctx_set(&ctx);
                        keng->froute(p_msg, TM_ONREPLY_ROUTE,
-                                       sr_kemi_cbname_lookup_idx(onreply_route));
+                                       sr_kemi_cbname_lookup_idx(onreply_route), NULL);
                        sr_kemi_act_ctx_set(bctx);
                } else {
                        run_top_route(onreply_rt.rlist[onreply_route], p_msg, &ctx);