Review Board 1.7.16


New queue CLI and Manager commands to facilitate fine-grained reloading

Review Request #115 - Created Jan. 4, 2009 and submitted

Mark Michelson
/trunk
Reviewers
asterisk-dev
jsmith
Asterisk
The purpose of these changes is to add new CLI and manager commands in order to reload queues.

The new CLI commands are the "queue reload" and "queue reset stats" commands. The new manager commands
are the QueueReload QueueReset commands. Rather than explain them in detail here, I'll direct you to the
modified documentation in the code.

In order to easily facilitate these changes, I also revamped the backend functions. Now instead of having
one giant function to reload queues, there are multiple small ones.
I ran many combinations of the CLI commands in succession, and a lesser number of the Manager commands. All appeared to do what is expected.
Review request changed
Updated (Feb. 12, 2009, 10:18 a.m.)
Fixed all the things Russell pointed out in his last round of comments.

I realized after reading Russell's comment about queue's membercount that it was modified very strangely during a reload, so I simplified it...a lot.
Ship it!
Posted (Feb. 12, 2009, 10:26 a.m.)
Very nice work, Mark!

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.