]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 2 Apr 2020 17:05:06 +0000 (12:05 -0500)
commit267583f18da22ac59ad6e1fab361bedb2ef9d0c1
tree3fc89625abff783c987ffb109d7569dc3c7f35d4
parent19d31636cfd6c9a05ad9ee0e21189400cac46d3d
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