summaryrefslogtreecommitdiff
path: root/main/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/message.c')
-rw-r--r--main/message.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/message.c b/main/message.c
index 26fea1aca..c04413dc8 100644
--- a/main/message.c
+++ b/main/message.c
@@ -752,6 +752,10 @@ static void chan_cleanup(struct ast_channel *chan)
if (msg_ds) {
ast_channel_datastore_add(chan, msg_ds);
}
+ /*
+ * Clear softhangup flags.
+ */
+ ast_channel_clear_softhangup(chan, AST_SOFTHANGUP_ALL);
ast_channel_unlock(chan);
}