]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip.c: Fix deadlock potential in fax redirection. 97/3297/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 13 Jul 2016 23:48:01 +0000 (18:48 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 21 Jul 2016 22:56:03 +0000 (17:56 -0500)
commit4dfadcb025514056ddc333d440aef21b0b2bb95d
tree1495ef19e875affc58f2afe360f33a27d2fc5cde
parent964ae54ecfd144b227802869c19664d80499ec1e
chan_pjsip.c: Fix deadlock potential in fax redirection.

The chan_pjsip_cng_tone_detected() 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: I32aecbb4818af646dc5a619f0dc040e9b1f222e5
channels/chan_pjsip.c