]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
core_unreal: Fix hangupcauses not getting set on Local channels 70/2570/2
authorJaco Kroon <jaco@uls.co.za>
Mon, 11 Apr 2016 19:26:57 +0000 (21:26 +0200)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 11 Apr 2016 19:55:32 +0000 (14:55 -0500)
ASTERISK-25912 #close

Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa

main/core_unreal.c

index fc311ec5d3fae095d46dcff633d1a2cbe2c8733a..e9b7a8d66ad9ec1b96bce463b48aa93213de40f2 100644 (file)
@@ -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;