Module: sip-router
Branch: 4.2
Commit: 00c884a644689ec9e135283c26d0d9f90711bb4c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=00c884a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Nov 10 15:42:39 2014 +0100
tm: handle BRANCH_FAILURE_ROUTE in t_check_trans() test
(cherry picked from commit 08248bae17024246442046376a4350007a100025)
---
modules/tm/tm.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/tm/tm.c b/modules/tm/tm.c
index b818256..80476e0 100644
--- a/modules/tm/tm.c
+++ b/modules/tm/tm.c
@@ -2115,9 +2115,10 @@ int t_check_trans(struct sip_msg* msg)
int ret;
/* already processing a T */
- if(get_route_type()==FAILURE_ROUTE
- || get_route_type()==BRANCH_ROUTE
- || get_route_type()==TM_ONREPLY_ROUTE) {
+ if(is_route_type(FAILURE_ROUTE)
+ || is_route_type(BRANCH_ROUTE)
+ || is_route_type(BRANCH_FAILURE_ROUTE)
+ || is_route_type(TM_ONREPLY_ROUTE)) {
return 1;
}