浏览代码

- 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[];