<p>Sebastian Damm has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10751">View Change</a></p><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>1 file changed, 16 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/51/10751/1</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 6b4f26c..053410f 100644</span><br><span>--- a/res/ari/resource_channels.c</span><br><span>+++ b/res/ari/resource_channels.c</span><br><span>@@ -888,6 +888,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></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10751">change 10751</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/10751"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I85996f1076c9946d65c778413f040a845a90fecc </div>
<div style="display:none"> Gerrit-Change-Number: 10751 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sebastian Damm <damm@sipgate.de> </div>