Module: sip-router Branch: master Commit: 8633741eb9163864f14f97582c1cddd4ca67bc69 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8633741e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Sat Apr 17 12:36:39 2010 +0200
tm: removed auto-adjustment of timers for K compat mode
- 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 | 23 ----------------------- 1 files changed, 0 insertions(+), 23 deletions(-)
diff --git a/modules/tm/timer.c b/modules/tm/timer.c index 534fdd3..4cb744c 100644 --- a/modules/tm/timer.c +++ b/modules/tm/timer.c @@ -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);