]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix realtime locking inversion when poking a just built peer.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 6 Mar 2015 19:17:45 +0000 (19:17 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 6 Mar 2015 19:17:45 +0000 (19:17 +0000)
commit2befe82721e5f19b1dadfd2011cc491c25f15953
tree429a4e4d38d7407271fe0a23b24b2da7360fbec4
parenta0dc90c5b8173da895a40028ebe35669e6eafdee
chan_sip: Fix realtime locking inversion when poking a just built peer.

When a realtime peer is built it can cause a locking inversion when the
just built peer is poked.  If the CLI command "sip show channels" is
periodically executed then a deadlock can happen because of the locking
inversion.

* Push the peer poke off onto the scheduler thread to avoid the locking
inversion of the just built realtime peer.

AST-1540
ASTERISK-24838 #close
Reported by: Richard Mudgett

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

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