]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 10 Sep 2025 19:52:59 +0000 (19:52 +0000)
commite3f392e0843b6e9835ed31dba603d16bdeb57ab5
treeb9a17fc730e1f7c4c709fb0abed4252412b133ad
parentc173bd57ce324abb5400acca2b33db3c21cf357f
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
(cherry picked from commit 38d0909669bcfd084538a641225ca8fcded0b3b9)
channels/chan_websocket.c