Module: sip-router
Branch: master
Commit: 58ad681ab68a14e8fe2b0f6ebc6cf03bdabeea80
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=58ad681…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Oct 30 20:47:42 2014 +0100
rr: dont set msg flag FL_RR_ADDED for record_route() in branch_route
- the operation is specific only for the branch
---
modules/rr/rr_mod.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/rr/rr_mod.c b/modules/rr/rr_mod.c
index 49133cf..34aa0a6 100644
--- a/modules/rr/rr_mod.c
+++ b/modules/rr/rr_mod.c
@@ -270,7 +270,8 @@ static int w_record_route(struct sip_msg *msg, char *key, char *bar)
if ( record_route( msg, key?&s:0 )<0 )
return -1;
- msg->msg_flags |= FL_RR_ADDED;
+ if(get_route_type()!=BRANCH_ROUTE)
+ msg->msg_flags |= FL_RR_ADDED;
return 1;
}