[Asterisk-Users] call queue problems

Kevin Smith kevin.smith at mercury.net
Mon Apr 24 21:14:55 MST 2006


Yes there is. QUEUE_MEMBER_LIST(<queuename>)

This should return you a list of comman-separated list of the members in 
a queue. After that you would need to format it (if needed) so asterisk 
can read it back to you. Of course then you can make some logic 
decesions on whether you want to remove the memeber from the queue, etc.

Also you may find this page helpful for things you are looking for 
http://www.voip-info.org/wiki/view/Asterisk+functions

Kevin


Dumpolid Exeplish wrote:

> Thanks Kevin,
> the tip worked like a charm. However, there are newer issues now! Is 
> there any way of knowing which users are looed in? sometimes, customer 
> support users forget to login B4 they shutdown their computers (we use 
> soft phones) and "presistentmembers=yes" is set in queues.conf so the  
> users are not logged off automatically . I have an extension on which 
> I dial to get the count of loged in users. Is there a way to find out 
> which extensions are currently logged in??
>
> Thanks agai
>
> On 4/24/06, *Kevin Smith* <kevin.smith at mercury.net 
> <mailto:kevin.smith at mercury.net>> wrote:
>
>     Hi,
>
>     What I would suggest doing, since we have a similar setup (where
>     our 24
>     support contracts can enter a pin number to be routed to an on call
>     tech) is I use the function QUEUEAGENTCOUNT(queue name). Since you
>     said
>     that the calls should only be routed after the last support person
>     logs
>     out, just do a test to see if there is anyone logged in the queue, if
>     not, send them to the NOC.
>
>     example:
>
>     exten => s,1,gotoif,$[${QUEUEAGENTCOUNT(124)} > 0]?YES:NO
>     exten => s,n(YES),queue(124) ;Since there are more then 0 people
>     in your
>     queue
>     exten => s,n(NO),queue(123)   ; If there less then or equal to 0
>
>     You also can run other tests and use logic and's and or's to make the
>     tests more complex.
>
>     Hopefully this will help,
>
>     Kevin
>
>
>



More information about the asterisk-users mailing list