<p>Kfir Itzhak has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14811">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue: Fix leave-empty sometimes 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 a queue without recording it as abandoned.<br>This causes Asterisk to not generate an abandon event for that 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/11/14811/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 b13dc78..076b651 100644</span><br><span>--- a/apps/app_queue.c</span><br><span>+++ b/apps/app_queue.c</span><br><span>@@ -5644,6 +5644,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->raise_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/+/14811">change 14811</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/+/14811"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I1a71b81df78adff59af587f1d8483cf57df430c7 </div>
<div style="display:none"> Gerrit-Change-Number: 14811 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kfir Itzhak <mastertheknife@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>