<p>George Joseph would like Kfir Itzhak to <strong>review</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14884">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue: Fix leave-empty not recording a call as abandoned<br><br>This fixes a bug introduced mistakenly in ASTERISK-25665:<br>If leave-empty is enabled, a call may sometimes be removed from<br>a queue without recording it as abandoned.<br>This causes Asterisk to not generate an abandon event for that<br>call, and for the queue abandoned counter to be incorrect.<br><br>ASTERISK-29043 #close<br><br>Change-Id: I1a71b81df78adff59af587f1d8483cf57df430c7<br>---<br>M apps/app_queue.c<br>1 file changed, 1 insertion(+), 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/84/14884/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_queue.c b/apps/app_queue.c</span><br><span>index 5d2721b..4db468f 100644</span><br><span>--- a/apps/app_queue.c</span><br><span>+++ b/apps/app_queue.c</span><br><span>@@ -5431,6 +5431,7 @@</span><br><span>                        int status = 0;</span><br><span> </span><br><span>                  if ((status = get_member_status(qe->parent, qe->max_penalty, qe->min_penalty, qe->parent->leavewhenempty, 0))) {</span><br><span style="color: hsl(120, 100%, 40%);">+                               record_abandoned(qe);</span><br><span>                                *reason = QUEUE_LEAVEEMPTY;</span><br><span>                          ast_queue_log(qe->parent->name, ast_channel_uniqueid(qe->chan), "NONE", "EXITEMPTY", "%d|%d|%ld", qe->pos, qe->opos, (long) (time(NULL) - qe->start));</span><br><span>                               res = -1;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14884">change 14884</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/c/asterisk/+/14884"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I1a71b81df78adff59af587f1d8483cf57df430c7 </div>
<div style="display:none"> Gerrit-Change-Number: 14884 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kfir Itzhak <mastertheknife@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>