[prev in list] [next in list] [prev in thread] [next in thread]
List: sr-dev
Subject: [sr-dev] git:master:e6044935: tm: Set tcx.branch_index to picked branch before running failure route
From: Alex Hermann <alex () speakup ! nl>
Date: 2016-08-30 11:47:55
Message-ID: E1behWF-0000Yg-83 () www ! kamailio ! org
[Download RAW message or body]
Module: kamailio
Branch: master
Commit: e604493579440f38f2066c4c8301cdfa88137f74
URL: https://github.com/kamailio/kamailio/commit/e604493579440f38f2066c4c8301cdfa88137f74
Author: Alex Hermann <alex@speakup.nl>
Committer: Alex Hermann <alex@speakup.nl>
Date: 2016-08-02T12:13:04+02:00
tm: Set tcx.branch_index to picked branch before running failure route.
This makes the picked branch index available in $T_branch_idx for failure_route.
---
Modified: modules/tm/t_reply.c
---
Diff: https://github.com/kamailio/kamailio/commit/e604493579440f38f2066c4c8301cdfa88137f74.diff
Patch: https://github.com/kamailio/kamailio/commit/e604493579440f38f2066c4c8301cdfa88137f74.patch
---
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c
index bd67000..2e7b9cbe 100644
--- a/modules/tm/t_reply.c
+++ b/modules/tm/t_reply.c
@@ -1352,6 +1352,7 @@ static enum rps t_should_relay_response( struct cell *Trans , int new_code,
drop_replies = failure_reply_mode;
replies_dropped = 0;
+ tm_ctx_set_branch_index(picked_branch);
/* run ON_FAILURE handlers ( route and callbacks) */
if (unlikely(has_tran_tmcbs( Trans, TMCB_ON_FAILURE_RO|TMCB_ON_FAILURE)
|| Trans->uac[picked_branch].on_failure )) {
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic