summaryrefslogtreecommitdiff
path: root/main/bridge_after.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/bridge_after.c')
-rw-r--r--main/bridge_after.c5
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. */