Files
asterisk/channels
Richard Mudgett 11aeccf707 Fix deadlock if peer is destroyed while sending MWI notice.
A dialog cannot be destroyed by the ao2_callback dialog_needdestroy
because of a deadlock between the dialogs container lock and the RWLOCK of
the events subscription list.

* Create dialogs_to_destroy container to hold dialogs that will be
destroyed.

* Ensure that the event subscription callback will never happen with an
invalid peer pointer by making the event callback removal the first thing
in the peer destructor callback.

NOTE: This particular deadlock will not happen with Asterisk 10, but some
of the changes still apply.

(closes issue ASTERISK-18747)
Reported by: Gregory Hinton Nietsky

Review: https://reviewboard.asterisk.org/r/1564/
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@343578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-11-07 19:51:42 +00:00
..
2011-11-03 15:39:25 +00:00
2011-10-18 21:11:42 +00:00
2011-10-19 19:01:21 +00:00
2011-10-18 21:11:42 +00:00
2011-10-18 21:11:42 +00:00