diff options
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 2d9e15b08..ba985199f 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -6323,6 +6323,12 @@ static enum ast_pbx_result __ast_pbx_run(struct ast_channel *c, while (!(res = ast_spawn_extension(c, ast_channel_context(c), ast_channel_exten(c), ast_channel_priority(c), S_COR(ast_channel_caller(c)->id.number.valid, ast_channel_caller(c)->id.number.str, NULL), &found, 1))) { + + /* Defensively clear the UNBRIDGE flag in case it leaked + * out of the bridging framework. UNBRIDE never implies + * that a channel is hung up. + */ + ast_channel_clear_softhangup(c, AST_SOFTHANGUP_UNBRIDGE); if (!ast_check_hangup(c)) { ast_channel_priority_set(c, ast_channel_priority(c) + 1); continue; |