diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-06-08 18:12:53 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-06-08 18:12:53 +0000 |
commit | 20a14e568f64de25326d794768790351cb703330 (patch) | |
tree | 045cdcd6e32ce2c69d1a71f317864519a78e6349 /main/bridge_after.c | |
parent | 30b7ba05e737054e0119c4d0c2bb5498ab645705 (diff) |
bridges/bridge_native_rtp: Reconfigure bridge on removal of framehook
This patch is a re-do of r414122.
When r414122 was merged, a major problem with it was uncovered. UNBRIDGE soft
hangup flags have a catastrophic effect on the pbx core if they leak out from
the bridge layer: the channel gets hung up. With the number of threads
involved in a blind transfer, and with the initial patch, it was likely that
this would occur. This caused a large number of test failures
This patch is nearly identical with the one proposed in r414122, save for the
following changes:
- We explicitly clear the UNBRIDGE flag when setting an after goto on a
channel in a bridge
- Defensively, if we encounter an UNBRIDGE flag in the pbx core, we handle it
https://reviewboard.asterisk.org/r/3585/
........
Merged revisions 415443 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415444 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/bridge_after.c')
-rw-r--r-- | main/bridge_after.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/bridge_after.c b/main/bridge_after.c index 3d1d2f362..fbe4e605a 100644 --- a/main/bridge_after.c +++ b/main/bridge_after.c @@ -451,6 +451,11 @@ int ast_bridge_setup_after_goto(struct ast_channel *chan) struct after_bridge_goto_ds *after_bridge; int goto_failed = -1; + /* We are going to be leaving the bridging system now; + * clear any pending UNBRIDGE flags + */ + ast_channel_clear_softhangup(chan, AST_SOFTHANGUP_UNBRIDGE); + /* Determine if we are going to setup a dialplan location and where. */ if (ast_channel_softhangup_internal_flag(chan) & AST_SOFTHANGUP_ASYNCGOTO) { /* An async goto has already setup a location. */ |