[sr-dev] git:master:0f94306a: tm: extended the kemi callbacks after updates to prototype

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 14 10:56:00 CET 2016


Module: kamailio
Branch: master
Commit: 0f94306a4e9fefde75d0b447a114f01cc0ade01f
URL: https://github.com/kamailio/kamailio/commit/0f94306a4e9fefde75d0b447a114f01cc0ade01f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-11-14T10:31:10+01:00

tm: extended the kemi callbacks after updates to prototype

---

Modified: modules/tm/t_fwd.c
Modified: modules/tm/t_reply.c

---

Diff:  https://github.com/kamailio/kamailio/commit/0f94306a4e9fefde75d0b447a114f01cc0ade01f.diff
Patch: https://github.com/kamailio/kamailio/commit/0f94306a4e9fefde75d0b447a114f01cc0ade01f.patch

---

diff --git a/modules/tm/t_fwd.c b/modules/tm/t_fwd.c
index 2ccac64..75286ae 100644
--- a/modules/tm/t_fwd.c
+++ b/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);
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c
index 48c3d22..c577509 100644
--- a/modules/tm/t_reply.c
+++ b/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);




More information about the sr-dev mailing list