[asterisk-dev] [Code Review] New manager Action: QueueSync
kobaz
reviewboard at asterisk.org
Thu Jan 20 00:51:05 CST 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1079/#review3111
-----------------------------------------------------------
Please write your updates against trunk as 1.6.2 is waning in support life.
- kobaz
On 2011-01-18 19:37:25, elbriga wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1079/
> -----------------------------------------------------------
>
> (Updated 2011-01-18 19:37:25)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> I've had some problems with the time that took to login agents via AMI, since I had to first make sure they're removed from all queues first, and then I've QueueAdd them to the Queues they belong.
>
> With this code in I can send an AMI command like this:
>
> Action: QueueSync
> Queues: queue1,queue5,queue7
> Interface: SIP/pa01
> Paused: 0
> MemberName: Agent01
>
> And that will make sure that Agent01 gets added to the queues listed (queue1,queue5,queue7) AND removed from all the other queues, with just one AMI command.
>
> It will silently ignore errors such as "Already There", thus the only possible error that it can cause is an RES_OUTOFMEMORY error.
>
>
> Diffs
> -----
>
> branches/1.6.2/apps/app_queue.c 302404
>
> Diff: https://reviewboard.asterisk.org/r/1079/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> elbriga
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110120/4dbdf28e/attachment-0001.htm>
More information about the asterisk-dev
mailing list