]> 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)
committerMaximilian Fridrich <m.fridrich@commend.com>
Tue, 19 Mar 2024 20:20:34 +0000 (20:20 +0000)
commit3d71b494d8813f4c84802fb5b88a01c83d2dd597
tree03826c19e6f1b9ec96fb8c334ba069c6bb0d8800
parent6938b7f96244b3a2559650316c90eea16fdeed30
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