<p>Friendly Automation <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/10753">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Benjamin Keith Ford: Looks good to me, but someone else must approve
Matthew Fredrickson: Looks good to me, but someone else must approve
Joshua C. Colp: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res/res_ari: Add additional hangup reasons<br><br>The ARI DELETE /channels command takes a "reason" parameter<br>Previously, there were only five reasons implemented<br>This patch adds more reasons to choose from for more<br>complex setups<br><br>ASTERISK-28198 #close<br><br>Change-Id: I85996f1076c9946d65c778413f040a845a90fecc<br>---<br>M res/ari/resource_channels.c<br>M rest-api/api-docs/channels.json<br>2 files changed, 24 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/ari/resource_channels.c b/res/ari/resource_channels.c</span><br><span>index 311358e..08f97f1 100644</span><br><span>--- a/res/ari/resource_channels.c</span><br><span>+++ b/res/ari/resource_channels.c</span><br><span>@@ -871,6 +871,22 @@</span><br><span> cause = AST_CAUSE_CONGESTION;</span><br><span> } else if (!strcmp(args->reason, "no_answer")) {</span><br><span> cause = AST_CAUSE_NOANSWER;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "timeout")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_NO_USER_RESPONSE;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "rejected")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_CALL_REJECTED;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "unallocated")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_UNALLOCATED;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "normal_unspecified")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_NORMAL_UNSPECIFIED;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "number_incomplete")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_INVALID_NUMBER_FORMAT;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "codec_mismatch")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "interworking")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_INTERWORKING;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else if (!strcmp(args->reason, "failure")) {</span><br><span style="color: hsl(120, 100%, 40%);">+ cause = AST_CAUSE_FAILURE;</span><br><span> } else if(!strcmp(args->reason, "answered_elsewhere")) {</span><br><span> cause = AST_CAUSE_ANSWERED_ELSEWHERE;</span><br><span> } else {</span><br><span>diff --git a/rest-api/api-docs/channels.json b/rest-api/api-docs/channels.json</span><br><span>index ec8bae2..08db224 100644</span><br><span>--- a/rest-api/api-docs/channels.json</span><br><span>+++ b/rest-api/api-docs/channels.json</span><br><span>@@ -421,6 +421,14 @@</span><br><span> "busy",</span><br><span> "congestion",</span><br><span> "no_answer",</span><br><span style="color: hsl(120, 100%, 40%);">+ "timeout",</span><br><span style="color: hsl(120, 100%, 40%);">+ "rejected",</span><br><span style="color: hsl(120, 100%, 40%);">+ "unallocated",</span><br><span style="color: hsl(120, 100%, 40%);">+ "normal_unspecified",</span><br><span style="color: hsl(120, 100%, 40%);">+ "number_incomplete",</span><br><span style="color: hsl(120, 100%, 40%);">+ "codec_mismatch",</span><br><span style="color: hsl(120, 100%, 40%);">+ "interworking",</span><br><span style="color: hsl(120, 100%, 40%);">+ "failure",</span><br><span> "answered_elsewhere"</span><br><span> ]</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10753">change 10753</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10753"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I85996f1076c9946d65c778413f040a845a90fecc </div>
<div style="display:none"> Gerrit-Change-Number: 10753 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Sebastian Damm <damm@sipgate.de> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Matthew Fredrickson <creslin@digium.com> </div>