]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
core_unreal: Fix hangupcauses not getting set on Local channels 69/2569/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:56:54 +0000 (14:56 -0500)
ASTERISK-25912 #close

Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa

main/core_unreal.c

index 1f5c202ba554f0dab190bdadce9b11ee27d88749..377abd1ffac0430312bbaa0e5e819dd56df11246 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;