summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-10-03 17:39:50 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-10-03 17:39:50 +0000
commit6a844be566478d6fed1ec93c0836fbf5d5d46ff3 (patch)
treeca7a344f77695f1ecdeaf68cb5c9a6b899562b96 /addons
parentb67094624d33b6586177435017cd4f6fdedd3f3f (diff)
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
Diffstat (limited to 'addons')
-rw-r--r--addons/chan_ooh323.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c
index b0fa01ff3..34b0b633b 100644
--- a/addons/chan_ooh323.c
+++ b/addons/chan_ooh323.c
@@ -1396,6 +1396,7 @@ static int ooh323_indicate(struct ast_channel *ast, int condition, const void *d
break;
case AST_CONTROL_PROCEEDING:
case AST_CONTROL_PVT_CAUSE_CODE:
+ case AST_CONTROL_MASQUERADE_NOTIFY:
case -1:
break;
default: