Module: kamailio
Branch: master
Commit: 7660f30cabfcca004e6eed1cf60d7530fc2cc7ee
URL:
https://github.com/kamailio/kamailio/commit/7660f30cabfcca004e6eed1cf60d753…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-04-17T15:25:09+02:00
tm: debug message if kemi on-reply route callback returns negative
---
Modified: src/modules/tm/t_reply.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7660f30cabfcca004e6eed1cf60d753…
Patch:
https://github.com/kamailio/kamailio/commit/7660f30cabfcca004e6eed1cf60d753…
---
diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c
index 202b8d826f..60518e15e0 100644
--- a/src/modules/tm/t_reply.c
+++ b/src/modules/tm/t_reply.c
@@ -2421,8 +2421,10 @@ int reply_received( struct sip_msg *p_msg )
bctx = sr_kemi_act_ctx_get();
init_run_actions_ctx(&ctx);
sr_kemi_act_ctx_set(&ctx);
- sr_kemi_route(keng, p_msg, TM_ONREPLY_ROUTE,
- sr_kemi_cbname_lookup_idx(onreply_route), NULL);
+ if(sr_kemi_route(keng, p_msg, TM_ONREPLY_ROUTE,
+ sr_kemi_cbname_lookup_idx(onreply_route), NULL)<0) {
+ LM_DBG("negative return from on-reply kemi callback\n");
+ }
sr_kemi_act_ctx_set(bctx);
} else {
run_top_route(onreply_rt.rlist[onreply_route], p_msg, &ctx);