浏览代码

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 年之前
父节点
当前提交
58ad681ab6
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;
 }