summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/core_unreal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/core_unreal.c b/main/core_unreal.c
index 1f5c202ba..377abd1ff 100644
--- a/main/core_unreal.c
+++ b/main/core_unreal.c
@@ -566,6 +566,11 @@ int ast_unreal_indicate(struct ast_channel *ast, int condition, const void *data
res = -1;
}
break;
+ case AST_CONTROL_PVT_CAUSE_CODE:
+ /* Return -1 so that asterisk core will correctly set up hangupcauses. */
+ unreal_queue_indicate(p, ast, condition, data, datalen);
+ res = -1;
+ break;
default:
res = unreal_queue_indicate(p, ast, condition, data, datalen);
break;