]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip.c: Fix deadlock potential in fax redirection. 51/3251/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 13 Jul 2016 23:49:08 +0000 (18:49 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 19 Jul 2016 18:31:51 +0000 (13:31 -0500)
commitdb4979fa79bc3f5d754aa76816a39869132b10ca
tree60a5092ada91db0c5d3b8160e198ecd5dcbbdc40
parent3db468ea9e3154758a965e247adaffdbc158034c
chan_sip.c: Fix deadlock potential in fax redirection.

The sip_read() 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.

ASTERISK-26216
Reported by: Richard Mudgett

Change-Id: I6d3f5cccd4b77c3aa6ffc1a54c0f6bde61c9278e
channels/chan_sip.c