From: Jaco Kroon Date: Mon, 11 Apr 2016 19:26:57 +0000 (+0200) Subject: core_unreal: Fix hangupcauses not getting set on Local channels X-Git-Tag: 14.0.0-beta1~268^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc56573de8ce3ea22e1d7266137fc4def6acca3;p=thirdparty%2Fasterisk.git core_unreal: Fix hangupcauses not getting set on Local channels ASTERISK-25912 #close Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa --- diff --git a/main/core_unreal.c b/main/core_unreal.c index 1f5c202ba5..377abd1ffa 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;