tm: extended the kemi callbacks after updates to prototype
[sip-router] / modules / tm / t_reply.c
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);