Files
asterisk/include/asterisk
Richard Mudgett 6a844be566 chan_pjsip: Fix deadlock when masquerading PJSIP channels.
Performing a directed call pickup resulted in a deadlock when PJSIP
channels were involved.

A masquerade needs to hold onto the channel locks while it swaps channel
information between the two channels involved in the masquerade.  With
PJSIP channels, the fixup routine needed to push a fixup task onto the
PJSIP channel's serializer.  Unfortunately, if the serializer was also
processing a task that needed to lock the channel, you get deadlock.

* Added a new control frame that is used to notify the channels that a
masquerade is about to start and when it has completed.

* Added the ability to query taskprocessors if the current thread is the
taskprocessor thread.

* Added the ability to suspend/unsuspend the PJSIP serializer thread so a
masquerade could fixup the PJSIP channel without using the serializer.

ASTERISK-24356 #close
Reported by: rmudgett

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

Merged revisions 424471 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@424472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-10-03 17:39:50 +00:00
..
2012-06-25 15:55:25 +00:00
2014-01-12 22:24:27 +00:00
2014-07-24 17:50:46 +00:00
2013-07-25 04:06:32 +00:00
2013-08-22 18:52:41 +00:00
2013-09-27 14:08:23 +00:00
2012-08-30 14:23:28 +00:00
2012-08-30 14:23:28 +00:00
2014-08-05 21:44:09 +00:00
2013-11-02 04:12:36 +00:00
2013-08-30 20:58:59 +00:00
2014-07-04 13:26:37 +00:00
2013-07-03 17:58:45 +00:00
2014-01-06 17:45:25 +00:00
2012-09-21 17:14:59 +00:00
2012-02-24 15:10:35 +00:00
2014-08-28 00:15:03 +00:00
2014-07-21 08:41:29 +00:00
2013-04-22 16:22:00 +00:00
2013-05-08 13:39:08 +00:00
2013-02-14 18:47:56 +00:00
2013-02-15 13:38:12 +00:00