]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip.c: Fix deadlock potential in fax redirection. 98/3298/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 13 Jul 2016 23:49:08 +0000 (18:49 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 21 Jul 2016 22:56:03 +0000 (17:56 -0500)
commita1d36c89e05d0104ae3626eaefd3da1d022c8e26
tree47dd08a24d5e1c105fc5429589054fc44840c867
parent4dfadcb025514056ddc333d440aef21b0b2bb95d
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