Prevent BLF subscriptions from causing deadlocks
authorKinsey Moore <kmoore@digium.com>
Mon, 7 Nov 2011 20:35:58 +0000 (20:35 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 7 Nov 2011 20:35:58 +0000 (20:35 +0000)
commit1c526d3d7d7d42bb253e8fb5acc8ff366217437c
tree8d139490e001b7a1cffbc36bb3920d45ec8d2fbb
parent00a522c0004341fb1e83b66606ff108611aa5040
Prevent BLF subscriptions from causing deadlocks

Fix a locking inversion in sip_send_mwi_to_peer that was causing deadlocks.
This function now requires that both the peer and associated pvt be unlocked
before it is called for cases where peer and peer->mwipvt form a circular
reference.

(closes issue ASTERISK-18663)
Review: https://reviewboard.asterisk.org/r/1563/
........

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

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

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