[asterisk-dev] [Code Review] New manager Action: QueueSync

elbriga reviewboard at asterisk.org
Thu Jan 20 19:03:22 CST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1079/
-----------------------------------------------------------

(Updated 2011-01-20 19:03:22.876439)


Review request for Asterisk Developers.


Changes
-------

Now the patch is against trunk. app_queue.c revision 303011


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 (updated)
-----

  trunk/apps/app_queue.c 303196 

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/20110121/417a896c/attachment.htm>


More information about the asterisk-dev mailing list