[sr-dev] git:master: tmx: properly receive the branch index for $T(...) in the branch_failure_route

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 17 16:17:09 CEST 2014


Module: sip-router
Branch: master
Commit: 27c383c9224055e3d1b01238ff47785449e4057c
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=27c383c9224055e3d1b01238ff47785449e4057c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Apr 17 16:16:04 2014 +0200

tmx: properly receive the branch index for $T(...) in the branch_failure_route

---

 modules/tmx/t_var.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/tmx/t_var.c b/modules/tmx/t_var.c
index a52927a..651ecbf 100644
--- a/modules/tmx/t_var.c
+++ b/modules/tmx/t_var.c
@@ -384,7 +384,8 @@ int pv_get_tm_branch_idx(struct sip_msg *msg, pv_param_t *param,
 			idx = tcx->branch_index;
 	} else switch(route_type) {
 		case BRANCH_ROUTE:
-			/* branches have their index set */
+		case BRANCH_FAILURE_ROUTE:
+			/* branch and branch_failure routes have their index set */
 			tcx = _tmx_tmb.tm_ctx_get();
 			if(tcx != NULL)
 				idx = tcx->branch_index;




More information about the sr-dev mailing list