Browse Source

rr: dont set msg flag FL_RR_ADDED for record_route() in branch_route

- the operation is specific only for the branch
Daniel-Constantin Mierla 11 years ago
parent
commit
58ad681ab6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/rr/rr_mod.c

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