From 18e9acc3c106e2f22c4fc78f67eb427b44fcf80d Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Fri, 20 Jul 2018 11:54:35 +0000 Subject: [PATCH] res_pjsip: Update default keepalive interval to 90 seconds. A change recently went in which disabled the built-in PJSIP keepalive. This defaulted to 90 seconds and kept TCP/TLS connections alive. Disabling this functionality has resulted in a behavior change of not doing keepalives by default resulting in TCP/TLS connections dropping for some people. This change makes our default keepalive interval 90 seconds to match the previous behavior and preserve it. ASTERISK-27978 Change-Id: Ibd9a45f3cbe5d9bb6d2161268696645ff781b1d6 --- res/res_pjsip.c | 2 +- res/res_pjsip/config_global.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/res_pjsip.c b/res/res_pjsip.c index e087564010..17f9339031 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -1673,7 +1673,7 @@ Value used in Max-Forwards header for SIP requests. - + The interval (in seconds) to send keepalives to active connection-oriented transports. diff --git a/res/res_pjsip/config_global.c b/res/res_pjsip/config_global.c index 2a803128d9..b3d6fa28b8 100644 --- a/res/res_pjsip/config_global.c +++ b/res/res_pjsip/config_global.c @@ -29,7 +29,7 @@ #include "asterisk/res_pjsip_cli.h" #define DEFAULT_MAX_FORWARDS 70 -#define DEFAULT_KEEPALIVE_INTERVAL 0 +#define DEFAULT_KEEPALIVE_INTERVAL 90 #define DEFAULT_USERAGENT_PREFIX "Asterisk PBX" #define DEFAULT_OUTBOUND_ENDPOINT "default_outbound_endpoint" #define DEFAULT_DEBUG "no"