diff options
author | Jaco Kroon <jaco@uls.co.za> | 2016-04-11 21:26:57 +0200 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-04-11 14:56:54 -0500 |
commit | 2cc56573de8ce3ea22e1d7266137fc4def6acca3 (patch) | |
tree | e8ed04b3c0415f786b864eb2e9c16e32ba1edb2b /main | |
parent | c3339816f1d6bb432532fe696c1111d42758ca54 (diff) |
core_unreal: Fix hangupcauses not getting set on Local channels
ASTERISK-25912 #close
Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa
Diffstat (limited to 'main')
-rw-r--r-- | main/core_unreal.c | 5 |
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; |