[Asterisk-code-review] openr2(6/6): Set hangup cause (...asterisk[13])
Oron Peled
asteriskteam at digium.com
Mon Jul 8 18:09:07 CDT 2019
Oron Peled has uploaded this change for review. ( 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(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/11538/1
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 35d9f96..d5b351f 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -3944,6 +3944,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: 1
Gerrit-Owner: Oron Peled <oron.peled at xorcom.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190708/1f2b9454/attachment-0001.html>
More information about the asterisk-code-review
mailing list