]> 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:03 +0000 (13:46 +0000)
commit38d0909669bcfd084538a641225ca8fcded0b3b9
treebfac9d10148562aa365b4440e5046cef01d12ee5
parent63e88f5bc194f1adccf82916bba4755fe3b6e8d9
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