tm: removed auto-adjustment of timers for K compat mode
authorDaniel-Constantin Mierla <miconda@gmail.com>
Sat, 17 Apr 2010 10:36:39 +0000 (12:36 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Sat, 17 Apr 2010 10:36:39 +0000 (12:36 +0200)
- K compat mode removed for auto-adjustment of values for timer
  parameters
- make sure you give proper value in mili-seconds (as in README)
- part of cfg compat mode removal

modules/tm/timer.c

index 534fdd3..4cb744c 100644 (file)
@@ -174,29 +174,6 @@ struct msgid_var user_noninv_max_lifetime;
 /* fix timer values to ticks */
 int tm_init_timers()
 {
-       if(sr_cfg_compat==SR_COMPAT_KAMAILIO) {
-               if(default_tm_cfg.fr_timeout<=120) {
-                       LM_WARN("too small given fr_timer value: %ums (using T*1000)\n",
-                                       default_tm_cfg.fr_timeout);
-                       default_tm_cfg.fr_timeout *= 1000;
-               }
-               if(default_tm_cfg.fr_inv_timeout<=120) {
-                       LM_WARN("too small given fr_inv_timer value: %ums (using T*1000)\n",
-                                       default_tm_cfg.fr_inv_timeout);
-                       default_tm_cfg.fr_inv_timeout *= 1000;
-               }
-               if(default_tm_cfg.wait_timeout<=120) {
-                       LM_WARN("too small given wait_timer value: %ums (using T*1000)\n",
-                                       default_tm_cfg.wait_timeout);
-                       default_tm_cfg.wait_timeout *= 1000;
-               }
-               if(default_tm_cfg.delete_timeout<=120) {
-                       LM_WARN("too small given delete_timer value: %ums (using T*1000)\n",
-                                       default_tm_cfg.delete_timeout);
-                       default_tm_cfg.delete_timeout *= 1000;
-               }
-       }
-
        default_tm_cfg.fr_timeout=MS_TO_TICKS(default_tm_cfg.fr_timeout); 
        default_tm_cfg.fr_inv_timeout=MS_TO_TICKS(default_tm_cfg.fr_inv_timeout);
        default_tm_cfg.wait_timeout=MS_TO_TICKS(default_tm_cfg.wait_timeout);