Browse Source

allow runtime configuration of keepalive timeout

update-rsyslog-config
lazedo 7 years ago
parent
commit
f7d64e8412
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      kamailio/keepalive.cfg

+ 2
- 1
kamailio/keepalive.cfg View File

@ -12,6 +12,7 @@
kazoo.keepalive_udp_only = KEEPALIVE_UDP_ONLY descr "should we send keepalive for udp only" kazoo.keepalive_udp_only = KEEPALIVE_UDP_ONLY descr "should we send keepalive for udp only"
kazoo.keepalive_nat_only = KEEPALIVE_NAT_ONLY descr "should we send keepalive for nat phones only" kazoo.keepalive_nat_only = KEEPALIVE_NAT_ONLY descr "should we send keepalive for nat phones only"
kazoo.keepalive_timeout = KEEPALIVE_TIMEOUT descr "timeout in ms for keepalive transaction"
modparam("rtimer", "timer", "name=keepalive_timer;interval=1;mode=KEEPALIVE_S_TIMERS;") modparam("rtimer", "timer", "name=keepalive_timer;interval=1;mode=KEEPALIVE_S_TIMERS;")
modparam("rtimer", "exec", "timer=keepalive_timer;route=KEEPALIVE_TIMER") modparam("rtimer", "exec", "timer=keepalive_timer;route=KEEPALIVE_TIMER")
@ -133,7 +134,7 @@ route[KEEPALIVE_PING]
t_on_reply("KEEPALIVE_REPLY"); t_on_reply("KEEPALIVE_REPLY");
t_on_failure("KEEPALIVE_FAULT"); t_on_failure("KEEPALIVE_FAULT");
t_set_fr(0, KEEPALIVE_TIMEOUT);
t_set_fr(0, $sel(cfg_get.kazoo.keepalive_timeout));
t_relay(); t_relay();
} }


Loading…
Cancel
Save