]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip.c: Fix deadlock potential in fax redirection. 47/3247/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:27:32 +0000 (13:27 -0500)
commitfa91cf3eeca1ee3b2bdb5e3d685de7100702ff21
tree5eeba0996477cfed97984e1ece1a4aae6d816439
parent2e1bdc3775d7b22a3364b7a3aaa07c463043ac9b
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