diff options
author | Joshua Colp <jcolp@digium.com> | 2016-04-11 18:02:42 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-04-11 18:02:42 -0500 |
commit | 5eec2386cf56757baf4e4a64308e11cd07d1df7a (patch) | |
tree | 22cf82d2b77703e1f6807e2d8a33465ecbbf9c99 | |
parent | df40173a00e83d503621c9ed3a6bf1cc879a71b9 (diff) | |
parent | 3f6c4667b814f9a4f51c81ac487dcc19c3230394 (diff) |
Merge "core_unreal: Fix hangupcauses not getting set on Local channels" into 13
-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 fc311ec5d..e9b7a8d66 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; |