[asterisk-dev] alter/implement new functions to add/remove member from some/all queues

Matt Riddell lists at venturevoip.com
Wed Aug 11 20:37:15 CDT 2010


On 12/08/10 5:06 AM, Gabriel Ortiz Lour wrote:
> Hi all,
>
>    I'm making some changes to be able to remove an interface from all
> queues at once, with only one AMI comand, and also another change to be
> able to add an interface to a list of queues with one AMI command. All
> on 1.6.2.10+
>
>    Can anybody help me with best practices for doing it? The main
> problem I see is the return value of this new/altered function, I had
> done it on 1.4.x, making the "queuename" parameter optional on the
> remove_from_queue function, but it would return always RES_OKAY no
> matter what it did.
>
>   The problem is that I'm having issues with sockets timing when sending
> several commands for add/remove of several agents, working with many queues.

I've always done it with a loop - store a list of queues that an agent 
should be a member of (delimited by ~) and run a while loop 
adding/removing the member - we use this for systems where agents are 
controlled by skillsets rather than queues.

-- 
Cheers,

Matt Riddell
_______________________________________________

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer)



More information about the asterisk-dev mailing list