]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_websocket: Reset frame_queue_length to 0 after FLUSH_MEDIA
authorkodokaii <kodokai.featheur@gmail.com>
Thu, 3 Jul 2025 17:40:10 +0000 (19:40 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 15 Jul 2025 13:46:10 +0000 (13:46 +0000)
commitf9219284cb0076bf84fb7bbd4eb9049fc00fbaf5
tree01526d774f10a36cc085d8c9c8ef9bcae1909beb
parent0086f4a0b8b7d2f33ba247cc287857f61b5557af
chan_websocket: Reset frame_queue_length to 0 after FLUSH_MEDIA

In the WebSocket channel driver, the FLUSH_MEDIA command clears all frames from
the queue but does not reset the frame_queue_length counter.

As a result, the driver incorrectly thinks the queue is full after flushing,
which prevents new multimedia frames from being sent, especially after multiple
flush commands.

This fix sets frame_queue_length to 0 after flushing, ensuring the queue state
is consistent with its actual content.

Fixes: #1304
channels/chan_websocket.c