]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_sdp_rtp.c: Initial RTP inactivity check must consider the rtp_timeout setting.
authorHenrik Liljedahl <henrik.liljedahl1@saabgroup.com>
Thu, 11 Apr 2024 10:56:55 +0000 (12:56 +0200)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:47:40 +0000 (13:47 +0000)
commitf580b8b5f1fe2b79a8797059ad19fc21e9aec382
tree533a4f9e20730a5420e9893305de230a945dd231
parent229f3035f04c9591f0f04db754a841b72629893a
res_pjsip_sdp_rtp.c: Initial RTP inactivity check must consider the rtp_timeout setting.

First rtp activity check was performed after 500ms regardless of the rtp_timeout setting. Having a call in ringing state for more than rtp_timeout and the first rtp package is received more than 500ms after sdp negotiation and before the rtp_timeout, erronously caused the call to be hungup. Changed to perform the first rtp inactivity check after the timeout setting preventing calls to be disconnected before the rtp_timeout has elapsed since sdp negotiation.

Fixes #710

(cherry picked from commit d74266fe054b09348e39d1987a7c611d4225221e)
res/res_pjsip_sdp_rtp.c