소스 검색

- tm: fr_timer and fr_inv_timer avps are by default not set (no default value).
This speeds up transaction creation (since no avp lists need to be searched).
To revert to the old bevaviour just set them (modparam("tm"...)) or use
t_set_fr("$avp") (recommended)

Andrei Pelinescu-Onciul 19 년 전
부모
커밋
f3315fc88c
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      modules/tm/tm.c

+ 4 - 2
modules/tm/tm.c

@@ -192,8 +192,10 @@ static int t_any_replied(struct sip_msg* msg, char*, char*);
 static int t_is_canceled(struct sip_msg* msg, char*, char*);
 
 
-static char *fr_timer_param = FR_TIMER_AVP;
-static char *fr_inv_timer_param = FR_INV_TIMER_AVP;
+/* by default the fr timers avps are not set, so that the avps won't be
+ * searched for nothing each time a new transaction is created */
+static char *fr_timer_param = 0 /*FR_TIMER_AVP*/;
+static char *fr_inv_timer_param = 0 /*FR_INV_TIMER_AVP*/;
 
 static rpc_export_t tm_rpc[];