]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Reset pending_media_state->read_callbacks
authorMaximilian Fridrich <m.fridrich@commend.com>
Thu, 15 Feb 2024 16:07:27 +0000 (17:07 +0100)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:47:40 +0000 (13:47 +0000)
commita998c0d78ab565ed66a9ea48415bc38e1237ba76
tree98db34645233c9bee3dd8155851d57fc39c7eff6
parent4174709f7d80060f21c5331962cfbeb301d999d8
res_pjsip_session: Reset pending_media_state->read_callbacks

In handle_negotiated_sdp the pending_media_state->read_callbacks must be
reset before they are added in the SDP handlers in
handle_negotiated_sdp_session_media. Otherwise, old callbacks for
removed streams and file descriptors could be added to the channel and
Asterisk would poll on non-existing file descriptors.

Resolves: #611
(cherry picked from commit f626af8e13f00deeed0a0220b9af9423508acc0c)
res/res_pjsip_session.c