<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
P {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B>
asterisk-dev-bounces@lists.digium.com
[mailto:asterisk-dev-bounces@lists.digium.com] <B>On Behalf Of </B>Wolfgang
Pichler<BR><B>Sent:</B> Wednesday, September 05, 2007 8:00 AM<BR><B>To:</B>
asterisk-dev@lists.digium.com<BR><B>Subject:</B> [asterisk-dev] app_queue
membercount<BR></FONT><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><FONT size=3>Hi
all,<BR><BR>with r76801 the application queue was patched to now include a
variable membercount to keep track of the number of queue members.<BR><BR>As
Michelson noted in the changelog - as a side effect the QUEUE_MEMBER_COUNT
function did also changed to return the number of members regardless of their
state.<BR><BR>I think that may people still want to use the old method, to get
the real member count (members which are logged on). (we are one of those
peoples....)<BR><BR>In my opinion there are 3 values which are from
interest<BR> - the complete member count (as it gets now
returned by QUEUE_MEMBER_COUNT)<BR> - the logged in member
count (as QUEUE_MEMBER_COUNT did it before the change)<BR> -
the free member count (how many logged in members do not have a call)<BR>There
are two possible ways to implement this<BR> - Create an own
function for each value of interest (QUEUE_MEMBER_COUNT,
QUEUE_AVAILABLE_MEMBERS, QUEUE_FREE_MEMBERS)<BR> - Add a
parameter to the QUEUE_MEMBER_COUNT function to control which value it should
return (no parameter = current behaviour, parameter l = old behaviour,
parameter f = only free members)<BR><BR></FONT><SPAN
class=743021313-05092007><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></SPAN></FONT></DIV></BLOCKQUOTE>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><SPAN
class=743021313-05092007><FONT face=Arial color=#0000ff size=2>Personally, I
think the last one is the closest. However, I would rather see it
implemented as a function QUEUE_MEMBER which will take parameters COUNT,
AVAILABLE, and FREE (like how CALLERID takes NUM, NAME,
etc.).</FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><SPAN
class=743021313-05092007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><SPAN
class=743021313-05092007><FONT face=Arial color=#0000ff size=2>Just my
.02c</FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><SPAN
class=743021313-05092007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><SPAN
class=743021313-05092007><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face="times new roman, new york, times, serif" size=3><SPAN
style="FONT-FAMILY: times new roman,new york,times,serif"><SPAN
class=743021313-05092007><FONT face=Arial color=#0000ff size=2>-
Brad</FONT> </SPAN></SPAN></DIV></FONT></BODY></HTML>