[asterisk-bugs] [Asterisk 0011077]: GROUP_COUNT() returns 0

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Oct 25 03:54:54 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11077 
====================================================================== 
Reported By:                m4him
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11077
Category:                   Addons/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-24-2007 06:23 CDT
Last Modified:              10-25-2007 03:54 CDT
====================================================================== 
Summary:                    GROUP_COUNT() returns 0
Description: 
Description
GROUP_COUNT([groupname][@category])
Calculates the group count for the specified group, or uses the channel's
current group if not specified (and non-empty).

GROUP_COUNT() always returns when no group is specified.

====================================================================== 

---------------------------------------------------------------------- 
 jamesgolovich - 10-25-07 03:54  
---------------------------------------------------------------------- 
jmls on irc pointed out that channels can be in multiple groups if you
specify a category.  In my first patch the first group would always be
used.  The 2nd patch allows the category to be passed to GROUP_COUNT like:
GROUP_COUNT(@category)

We probably should document that if you don't specify a category then the
result will be the value of whatever the first group set was.  Of course I
think everyone that uses multiple groups probably explicitly passes the
group at category. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-25-07 03:54  jamesgolovich  Note Added: 0072491                          
======================================================================




More information about the asterisk-bugs mailing list