[asterisk-dev] Queue stats resetting on reload. Trying to engage the community...

Mark Michelson mmichelson at digium.com
Mon Aug 16 11:27:27 CDT 2010


On Mon, 2010-08-16 at 17:51 +0200, Ron Arts wrote:
> Hi,
> 
> At the moment in 1.6.x and 1.8 beta, a queue reload clears the queue stat counters.
> I put in a bug report about that, and provided a patch, but it was rejected,
> because it seems to be expected behaviour as per comments by russellb.
> 
> When warlock52 reported this as a bug a few days ago, pabelanger suggested to
> involve the community. So that's what I'm doing now.
> 
> Is it to be expected that the queue stats are cleared when a CLI queue reload
> is issued? I do reloads during the day, and my customers do not appreciate
> the per-agent call counters, and last call time etc being cleared, because
> it immediately affects their queue processing.
> 
> What is the reason this is implemented this way?
> 
> Thanks,
> Ron
> 

When the "queue reload" command was added in 1.6.2, the idea was to make
it behave the same way as the command "module reload app_queue.so" from
previous versions. That command reset statistics, and so the new command
did the same.

Now as to why it worked that way prior to 1.6.2...your guess is as good
as mine there. How did your proposed patch work? If it just
unequivocally turned off stat resetting during a reload, it makes sense
why it would be rejected since there may be those who rely on such
behavior and changing it mid-release is a bad idea. One idea that could
be looked into would be to add a qualifier to the end of the "queue
reload" command that indicates that you do not wish to also be resetting
the statistics. Even so, I'm not sure that would make it into 1.6.2
though.

Mark Michelson




More information about the asterisk-dev mailing list