]> 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:56:11 +0000 (13:56 +0000)
commit4c10d9552978d10cc5b9041cd4a721f4cc1ed26a
tree7f3069b259fc27b08a8270105ad543329fcc2854
parentc89e91c8d05d6dfb04f8b62645354bdeb6a35b12
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 3d71b494d8813f4c84802fb5b88a01c83d2dd597)
res/res_pjsip_session.c