]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip.c: Fix deadlock potential in fax redirection. 46/3246/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:27:31 +0000 (13:27 -0500)
commit2e1bdc3775d7b22a3364b7a3aaa07c463043ac9b
tree467c38e3ac23043ba935029a3b0aa178744c9ad3
parent628e8c91d5c6a3e745bdb37e6593fd838b006393
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