Fix deadlock in sig_pri when hanging up.
authorJeff Peeler <jpeeler@digium.com>
Fri, 7 May 2010 15:33:52 +0000 (15:33 +0000)
committerJeff Peeler <jpeeler@digium.com>
Fri, 7 May 2010 15:33:52 +0000 (15:33 +0000)
commit356b090875828acca8eb4d961bbb1f44aea6a738
tree31f92e152bd3bd0195ffd2917b0ddde6fc5c708b
parent6f03bf4a4245e536f21cf31be368bd8e83723f2c
Fix deadlock in sig_pri when hanging up.

The pri_dchannel thread currently violates locking order by locking the private
and then attempting to queue a frame, which needs to lock the channel. Queueing
a frame is unneccesary though and is actually a regression since sig_pri.
All the places that currently use ast_softhangup_nolock now will just set the
softhangup value directly as before.

(closes issue #17216)
Reported by: lmsteffan
Patches:
      bug17216.patch uploaded by jpeeler (license 325)

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