]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 19 Mar 2024 20:20:39 +0000 (20:20 +0000)
commite8cfed4516d6b6d1032e3fd72a7f2289e89c35a2
tree1f1aae064c2e7107171dec081abe2fd1398e5260
parent67613d19d66ed6e89855c9d03cc4f003ca936686
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
res/res_pjsip_session.c