]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax: Don't consume frames given to fax gateway on write.
authorJoshua C. Colp <jcolp@sangoma.com>
Wed, 27 May 2020 08:47:07 +0000 (05:47 -0300)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 5 Jun 2020 18:15:29 +0000 (13:15 -0500)
commitf30a61022a18454357e99530034ec12cf5d6c2d4
treed62bb79d58551e784fd81c34d38a39e912973d4a
parent439f782452550d2e21af6aed91ba4e08133ecd07
res_fax: Don't consume frames given to fax gateway on write.

In a particular fax gateway scenario whereby it would
have to translate using the read translation path on a
channel the frame being translated would be consumed.
When the frame is in the write path it is not permitted
to free the frame as the caller expects it to continue
to exist.

This change makes it so that the frame is only consumed
on the read path where it is acceptable to free it.

ASTERISK-28900

Change-Id: I011c321288a1b056d92b37c85e229f4a28ee737d
res/res_fax.c