summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index fbe1e530e..a0253b863 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -879,6 +879,7 @@ static int local_hangup(struct ast_channel *ast)
ao2_lock(p);
}
if (p->owner) {
+ p->owner->hangupcause = p->chan->hangupcause;
pbx_builtin_setvar_helper(p->owner, "CHANLOCALSTATUS", status);
ast_channel_unlock(p->owner);
}