[Asterisk-code-review] openr2(6/6): Set hangup cause (...asterisk[16])

George Joseph asteriskteam at digium.com
Tue Jul 23 19:41:56 CDT 2019


George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/asterisk/+/11608 )

Change subject: openr2(6/6): Set hangup cause
......................................................................

openr2(6/6): Set hangup cause

Change-Id: I94dc38920e6e77cc73062648f62fdd613d0d1452
Signed-off-by: Oron Peled <oron.peled at xorcom.com>
---
M channels/chan_dahdi.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved; Approved for Submit



diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 7ee561e..086ff6c 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -3878,6 +3878,7 @@
 	ast_copy_string(cause_code->code, cause_str, datalen + 1 - sizeof(*cause_code));
 	ast_queue_control_data(p->owner, AST_CONTROL_PVT_CAUSE_CODE, cause_code, datalen);
 	ast_channel_hangupcause_hash_set(p->owner, cause_code, datalen);
+	ast_channel_hangupcause_set(p->owner, cause_code->ast_cause);
 
 	/* when we have an owner we don't call dahdi_r2_disconnect_call here, that will
 	   be done in dahdi_hangup */

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11608
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I94dc38920e6e77cc73062648f62fdd613d0d1452
Gerrit-Change-Number: 11608
Gerrit-PatchSet: 1
Gerrit-Owner: Oron Peled <oron.peled at xorcom.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190723/150035a1/attachment.html>


More information about the asterisk-code-review mailing list