process_binary_message() checked the frame queue length against
QUEUE_LENGTH_MAX only once, before splitting the incoming binary
message into frames. A single WebSocket message can carry many
frames' worth of audio, so an application sending large chunks
(common with Voice AI services that generate audio faster than
real time) could push the queue far beyond its configured limit.
queue_frame_from_buffer() now checks the limit under the queue lock
for every frame and returns QUEUE_FRAME_DROPPED_FULL when the queue
is full. process_binary_message() stops at that point and discards
the remainder of the message, including any partial frame, so
non-contiguous audio is never spliced together through
leftover_data. The up-front check is kept as a fast path.
STOP_MEDIA_BUFFERING no longer aborts (and skips sending
MEDIA_BUFFERING_COMPLETED) if its final partial frame is dropped
because the queue is full; only real failures abort.
DeveloperNote: chan_websocket now enforces its 1000-frame media queue
limit on every frame instead of once per binary WebSocket message.
Applications that send more audio than fits in the remaining queue
space, in one message or without pausing on MEDIA_XOFF, will now have
the excess silently discarded, including any trailing partial frame.
Applications should honor MEDIA_XOFF/MEDIA_XON flow control and keep
individual messages reasonably small.