Fix POTS flash hook to orignate a second call deadlock.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 6 Jun 2012 21:34:10 +0000 (21:34 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 6 Jun 2012 21:34:10 +0000 (21:34 +0000)
commit0f71b29e2fb6210573652da80f7f9da1e6509665
treecce78139cd3c5cdad22ed445f9d6f4bd16b0dee4
parentea8cf8b5f3d186ea7f8e120f2f812a565775ed7e
Fix POTS flash hook to orignate a second call deadlock.

A deadlock can occur when a POTS phone tries to flash hook to originate a
second call for 3-way or transfer.  If another process is scanning the
channels container when the POTS line flash hooks then a deadlock will
occur.

* Release the channel and private locks when creating a new channel as a
result of a flash hook.

(closes issue ASTERISK-19842)
Reported by: rmudgett
Tested by: rmudgett
........

Merged revisions 368644 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 368645 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c
channels/sig_analog.c