Module: sip-router
Branch: master
Commit: 08248bae17024246442046376a4350007a100025
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=08248ba…
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
---
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 d437119..de1b7d0 100644
--- a/modules/tm/tm.c
+++ b/modules/tm/tm.c
@@ -2141,9 +2141,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;
}