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 <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to