Explorar el Código

tm: extended the kemi callbacks after updates to prototype

Daniel-Constantin Mierla hace 8 años
padre
commit
0f94306a4e
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. 1 1
      modules/tm/t_fwd.c
  2. 3 3
      modules/tm/t_reply.c

+ 1 - 1
modules/tm/t_fwd.c

@@ -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);

+ 3 - 3
modules/tm/t_reply.c

@@ -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);