]> 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:31:21 +0000 (19:31 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 6 Mar 2015 19:31:21 +0000 (19:31 +0000)
commit13e715b30c1e4fff81d6c42896a5ef5ade29b74a
treee636fff613ffbfc815886a87623a406a39adc300
parent06fa8db8646faa84e0506235623d7d33a0bf6f82
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/
........

Merged revisions 432526 from http://svn.asterisk.org/svn/asterisk/branches/11

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