]> git.ipfire.org Git - thirdparty/asterisk.git/commit
channel: write to a stream on multi-frame writes
authorKevin Harwell <kharwell@digium.com>
Tue, 31 Mar 2020 17:52:44 +0000 (12:52 -0500)
committerKevin Harwell <kharwell@digium.com>
Tue, 31 Mar 2020 18:06:03 +0000 (13:06 -0500)
commit3c345ec56d4e8c09ffafa07af91eaf9ba56b2fb7
tree591c94b4aa7aa34bb7e19ac9b9b88ebfd3aab7de
parentfc07eeaba16077cc5c8fcfeafc928f683127286f
channel: write to a stream on multi-frame writes

If a frame handling routine returns a list of frames (vs. a single frame)
those frames are never passed to a tech's write_stream handler even if one is
available. For instance, if a codec translation occurred and that codec
returned multiple frames then those particular frames were always only sent
to the tech's "write" handler. If that tech (pjsip for example) was stream
capable then those frames were essentially ignored. Thus resulting in bad
audio.

This patch makes it so the "write_stream" handler is appropriately called
for all cases, and for all frames if available.

ASTERISK-28795 #close

Change-Id: I868faea0b73a07ed5a32c2b05bb9cf4b586f739d
main/channel.c