Преглед на файлове

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