[Asterisk-code-review] core unreal: Fix hangupcauses not getting set on Local channels (asterisk[master])

Joshua Colp asteriskteam at digium.com
Mon Apr 11 16:37:35 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 1f5c202..377abd1 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/2569
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8e72e6894feaf36c9450f2788d205d07baec23aa
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
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-code-review mailing list