<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16343">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue: Don't reset queue stats on reload<br><br>Prevents reloads of app_queue from also resetting<br>queue statistics.<br><br>Also preserves individual queue agent statistics<br>if we're just reloading members.<br><br>ASTERISK-28701<br><br>Change-Id: Ib5d4cdec175e44de38ef0f6ede4a7701751766f1<br>---<br>M apps/app_queue.c<br>1 file changed, 7 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/43/16343/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 fdc5211..93adb3f 100644</span><br><span>--- a/apps/app_queue.c</span><br><span>+++ b/apps/app_queue.c</span><br><span>@@ -9339,9 +9339,13 @@</span><br><span> if ((newm = create_queue_member(interface, membername, penalty, cur ? cur->paused : 0, state_interface, ringinuse, wrapuptime))) {</span><br><span> newm->wrapuptime = wrapuptime;</span><br><span> if (cur) {</span><br><span style="color: hsl(0, 100%, 40%);">- /* Round Robin Queue Position must be copied if this is replacing an existing member */</span><br><span> ao2_lock(q->members);</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Round Robin Queue Position must be copied if this is replacing an existing member */</span><br><span> newm->queuepos = cur->queuepos;</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Don't reset agent stats either */</span><br><span style="color: hsl(120, 100%, 40%);">+ newm->calls = cur->calls;</span><br><span style="color: hsl(120, 100%, 40%);">+ newm->lastcall = cur->lastcall;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> ao2_link(q->members, newm);</span><br><span> ao2_unlink(q->members, cur);</span><br><span> ao2_unlock(q->members);</span><br><span>@@ -10407,7 +10411,7 @@</span><br><span> }</span><br><span> </span><br><span> if (!header_found) {</span><br><span style="color: hsl(0, 100%, 40%);">- ast_set_flag(&mask, AST_FLAGS_ALL);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_set_flag(&mask, AST_FLAGS_ALL & ~QUEUE_RESET_STATS);</span><br><span> }</span><br><span> </span><br><span> if (!reload_handler(1, &mask, queuename)) {</span><br><span>@@ -11146,7 +11150,7 @@</span><br><span> } else if (!strcasecmp(a->argv[2], "parameters")) {</span><br><span> ast_set_flag(&mask, QUEUE_RELOAD_PARAMETERS);</span><br><span> } else if (!strcasecmp(a->argv[2], "all")) {</span><br><span style="color: hsl(0, 100%, 40%);">- ast_set_flag(&mask, AST_FLAGS_ALL);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_set_flag(&mask, AST_FLAGS_ALL & ~QUEUE_RESET_STATS);</span><br><span> }</span><br><span> </span><br><span> if (a->argc == 3) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16343">change 16343</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/+/16343"/><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-Change-Id: Ib5d4cdec175e44de38ef0f6ede4a7701751766f1 </div>
<div style="display:none"> Gerrit-Change-Number: 16343 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>