]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 28 Mar 2024 12:55:54 +0000 (06:55 -0600)
commitf61e1d902b6905d2808e6cade39929350f0ae7dc
tree625041f34cbce90377914a99b2ebb633b7a4e00c
parentec7e6fe2ede6511ed2cf7688e7dd7807f747893f
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
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