2
0
Эх сурвалжийг харах

- 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 жил өмнө
parent
commit
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[];