[Asterisk-code-review] openr2(6/6): Set hangup cause (...asterisk[13])
Friendly Automation
asteriskteam at digium.com
Tue Jul 23 19:23:34 CDT 2019
Friendly Automation has submitted this change and it was merged. ( https://gerrit.asterisk.org/c/asterisk/+/11538 )
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:
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 7a199ae..1a3b158 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -3945,6 +3945,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/+/11538
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I94dc38920e6e77cc73062648f62fdd613d0d1452
Gerrit-Change-Number: 11538
Gerrit-PatchSet: 3
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/80ec9a0d/attachment.html>
More information about the asterisk-code-review
mailing list