]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_fax.c: Fix deadlock potential in FAXOPT(faxdetect) framehook. 96/3296/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 12 Jul 2016 22:33:29 +0000 (17:33 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 21 Jul 2016 22:56:03 +0000 (17:56 -0500)
commit964ae54ecfd144b227802869c19664d80499ec1e
tree666fce211126353eacfce2a81465d055acef9828
parent8551830abc4d52cb399e573db15681a6029922a5
res_fax.c: Fix deadlock potential in FAXOPT(faxdetect) framehook.

The fax_detect_framehook() has the potential to deadlock if an incoming
fax happens during the Playback or similar application.

* Fixed the potential deadlock by not calling ast_async_goto() with the
channel lock held.

* Made always eat the fax detection frame whether there is a fax extension
or not.

* Made only detach the framehook if we detected a fax and not on other
possible frames.

ASTERISK-26216
Reported by: Richard Mudgett

Change-Id: I99da35c26d1cd802626ffb4c1b4eb5b015581b6d
res/res_fax.c