Bläddra i källkod

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

Daniel-Constantin Mierla 11 år sedan
förälder
incheckning
27c383c922
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      modules/tmx/t_var.c

+ 2 - 1
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;