]> 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)
committerkodokaii <kodokai.featheur@gmail.com>
Tue, 15 Jul 2025 13:46:04 +0000 (13:46 +0000)
commitb73a7c872b55d0b78e4aa5a08fef843a7d1e503f
tree28581e6777a69de6d353f56a3e7b8cb5666539c9
parent7a43fbed726516db06949f466b21d5c9b4d4aa97
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