From 15cab44061bbfc73b1524cc7d53a143af729df93 Mon Sep 17 00:00:00 2001 From: lazedo Date: Tue, 12 Mar 2019 01:57:14 +0000 Subject: [PATCH] allow runtime configuration of keepalive timeout --- kamailio/keepalive.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kamailio/keepalive.cfg b/kamailio/keepalive.cfg index f153a58..fd13a59 100644 --- a/kamailio/keepalive.cfg +++ b/kamailio/keepalive.cfg @@ -12,6 +12,7 @@ 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_timeout = KEEPALIVE_TIMEOUT descr "timeout in ms for keepalive transaction" modparam("rtimer", "timer", "name=keepalive_timer;interval=1;mode=KEEPALIVE_S_TIMERS;") modparam("rtimer", "exec", "timer=keepalive_timer;route=KEEPALIVE_TIMER") @@ -133,7 +134,7 @@ route[KEEPALIVE_PING] t_on_reply("KEEPALIVE_REPLY"); t_on_failure("KEEPALIVE_FAULT"); - t_set_fr(0, KEEPALIVE_TIMEOUT); + t_set_fr(0, $sel(cfg_get.kazoo.keepalive_timeout)); t_relay(); }