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

elbriga reviewboard at asterisk.org
Tue Jan 18 19:37:25 CST 2011


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

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/20110119/1546f2cc/attachment-0001.htm>


More information about the asterisk-dev mailing list