]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip.c: Fix deadlock potential in fax redirection. 50/3250/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 13 Jul 2016 23:48:01 +0000 (18:48 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 19 Jul 2016 18:31:50 +0000 (13:31 -0500)
commit3db468ea9e3154758a965e247adaffdbc158034c
tree2ac791a20954f2d3fa12b4388245dc97369fc2f8
parent9abbea162c75c8a3485722fa22b4d5c9ee641132
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