diff options
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c index 8079edc62..f3d91842c 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5692,7 +5692,7 @@ void ast_pbx_h_exten_run(struct ast_channel *chan, const char *context) * Make sure that the channel is marked as hungup since we are * going to run the h exten on it. */ - ast_softhangup_nolock(chan, AST_SOFTHANGUP_APPUNLOAD); + ast_softhangup_nolock(chan, AST_SOFTHANGUP_HANGUP_EXEC); /* Save autoloop flag */ autoloopflag = ast_test_flag(ast_channel_flags(chan), AST_FLAG_IN_AUTOLOOP); @@ -5765,7 +5765,7 @@ int ast_pbx_hangup_handler_run(struct ast_channel *chan) * Make sure that the channel is marked as hungup since we are * going to run the hangup handlers on it. */ - ast_softhangup_nolock(chan, AST_SOFTHANGUP_APPUNLOAD); + ast_softhangup_nolock(chan, AST_SOFTHANGUP_HANGUP_EXEC); for (;;) { handlers = ast_channel_hangup_handlers(chan); |