]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Implement Configurable TCP Keepalive Settings in PJSIP Transports
authorJoshua Elson <joshelson@gmail.com>
Mon, 18 Mar 2024 19:14:36 +0000 (15:14 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:48:09 +0000 (13:48 +0000)
commitfb084a53c4529f4decb03b7f1051e75e5f6df08a
tree8018ff398ef7b5636e901a41ea8e163b78a40076
parent28afd0ce5375c17e37da6c13d711c55fdb2dd3b8
Implement Configurable TCP Keepalive Settings in PJSIP Transports

This commit introduces configurable TCP keepalive settings for both TCP and TLS transports. The changes allow for finer control over TCP connection keepalives, enhancing stability and reliability in environments prone to connection timeouts or where intermediate devices may prematurely close idle connections. This has proven necessary and has already been tested in production in several specialized environments where access to the underlying transport is unreliable in ways invisible to the operating system directly, so these keepalive and timeout mechanisms are necessary.

Fixes #657

(cherry picked from commit 555eb9d3d2bf9b3afac18a81d1da67fae8651e08)
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/8fce8496f03e_add_tcp_keepalive_settings_to_ps_.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip/config_transport.c
res/res_pjsip/pjsip_config.xml
third-party/pjproject/patches/config_site.h