[asterisk-bugs] [Asterisk 0015664]: [patch] QUEUE_MEMBER_LIST() returns member names instead of interfaces

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 7 13:16:48 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15664 
====================================================================== 
Reported By:                rain
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15664
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           Older 1.4 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-08-05 16:19 CDT
Last Modified:              2009-08-07 13:16 CDT
====================================================================== 
Summary:                    [patch] QUEUE_MEMBER_LIST() returns member names
instead of interfaces
Description: 
Although QUEUE_MEMBER_LIST() has always been documented as returning a list
of interfaces associated with a queue, it has been returning
member->membername since r82593.  When a queue member has an empty
membername, the membername is set to the channel name, which is probably
why nobody noticed.
====================================================================== 

---------------------------------------------------------------------- 
 (0108780) svnbot (reporter) - 2009-08-07 13:16
 https://issues.asterisk.org/view.php?id=15664#c108780 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 211038

U   branches/1.4/apps/app_queue.c

------------------------------------------------------------------------
r211038 | tilghman | 2009-08-07 13:16:48 -0500 (Fri, 07 Aug 2009) | 14
lines

QUEUE_MEMBER_LIST _really_ wants the interface name, not the membername.

This is a partial revert of revision 82590, which was an attempted
cleanup,
but in reality, it broke QUEUE_MEMBER_LIST, which has always been intended
as a method by which component interfaces could be queried from the queue.
Membername isn't useful here, because that field cannot be used to obtain
further information about the member.  See the documentation on
QUEUE_MEMBER_LIST, RemoveQueueMember, QUEUE_MEMBER_PENALTY, and the
various
AMI commands which take a member argument for further justification.
(closes issue https://issues.asterisk.org/view.php?id=15664)
 Reported by: rain
 Patches: 
       app_queue-queue_member_list.diff uploaded by rain (license 327)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=211038 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-07 13:16 svnbot         Checkin                                      
2009-08-07 13:16 svnbot         Note Added: 0108780                          
======================================================================




More information about the asterisk-bugs mailing list