[asterisk-commits] core unreal: Fix hangupcauses not getting set on Local channels (asterisk[13])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 11 18:02:43 CDT 2016
Joshua Colp has submitted this change and it was merged.
Change subject: core_unreal: Fix hangupcauses not getting set on Local channels
......................................................................
core_unreal: Fix hangupcauses not getting set on Local channels
ASTERISK-25912 #close
Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa
---
M main/core_unreal.c
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Verified
diff --git a/main/core_unreal.c b/main/core_unreal.c
index fc311ec..e9b7a8d 100644
--- a/main/core_unreal.c
+++ b/main/core_unreal.c
@@ -566,6 +566,11 @@
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;
--
To view, visit https://gerrit.asterisk.org/2570
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Jaco Kroon <jaco at uls.co.za>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
More information about the asterisk-commits
mailing list