]> 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:56:11 +0000 (13:56 +0000)
commite27f88ed036df9254f0556b45bb6f8260ff33613
treef6efa598195a8e35d15365db3b822e7bcac71dc8
parentc9439c8ad79d52f4619f8cfc0f130c625ee9d4e0
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 9cf8678112083246d1aa15344f1508170a797f85)
res/res_pjsip_sdp_rtp.c