aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index f30e8b210..f54897799 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -4405,7 +4405,7 @@ static enum ast_pbx_result __ast_pbx_run(struct ast_channel *c,
}
if (!args || !args->no_hangup_chan) {
- ast_softhangup(c, c->hangupcause ? c->hangupcause : AST_CAUSE_NORMAL_CLEARING);
+ ast_softhangup(c, AST_SOFTHANGUP_APPUNLOAD);
}
if ((!args || !args->no_hangup_chan) &&