]> 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)
commitf03421b03b19305f06e34d3fa20dac7f21a59b82
treec406efa926ca389b2960c27d431cabefd6b119af
parent08e19d081525bbc7d589fab2b3ef45cdacdd5e15
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