浏览代码

tm: cleaned always enabled TM_UAC_FLAGS define

Daniel-Constantin Mierla 9 年之前
父节点
当前提交
4e7599064a
共有 2 个文件被更改,包括 0 次插入9 次删除
  1. 0 5
      modules/tm/h_table.h
  2. 0 4
      modules/tm/t_fwd.c

+ 0 - 5
modules/tm/h_table.h

@@ -182,13 +182,10 @@ typedef struct ua_server
 
 /* User Agent Client content */
 
-#define TM_UAC_FLAGS
-#ifdef TM_UAC_FLAGS
 /* UAC internal flags */
 #define TM_UAC_FLAG_RR	1	/* Record-Route applied */
 #define TM_UAC_FLAG_R2	2	/* 2nd Record-Route applied */
 #define TM_UAC_FLAG_FB	4	/* Mark first entry in new branch set */
-#endif
 
 typedef struct ua_client
 {
@@ -216,10 +213,8 @@ typedef struct ua_client
 	/* if we don't store, we at least want to know the status */
 	int             last_received;
 
-#ifdef TM_UAC_FLAGS
 	/* internal flags per tm uac */
 	unsigned int flags;
-#endif
 	/* per branch flags */
 	flag_t branch_flags;
 	/* internal processing code - (mapping over sip warning codes)

+ 0 - 4
modules/tm/t_fwd.c

@@ -550,13 +550,11 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
 		memcpy( t->uac[branch].location_ua.s, i_req->location_ua.s, i_req->location_ua.len);
 	}
 
-#ifdef TM_UAC_FLAGS
 	len = count_applied_lumps(i_req->add_rm, HDR_RECORDROUTE_T);
 	if(len==1)
 		t->uac[branch].flags = TM_UAC_FLAG_RR;
 	else if(len==2)
 		t->uac[branch].flags = TM_UAC_FLAG_RR|TM_UAC_FLAG_R2;
-#endif
 
 	ret=0;
 
@@ -1728,10 +1726,8 @@ int t_forward_nonack( struct cell *t, struct sip_msg* p_msg ,
 		return lowest_ret;
 	}
 
-#ifdef TM_UAC_FLAGS
 	/* mark the fist branch in this fwd step */
 	t->uac[first_branch].flags |= TM_UAC_FLAG_FB;
-#endif
 
 	ser_error=0; /* clear branch adding errors */
 	/* send them out now */