[asterisk-bugs] [Asterisk 0012783]: [patch] Using AddQueueMember with the membername parameter causes minor issues

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jun 4 10:16:36 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12783 
====================================================================== 
Reported By:                davevg
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12783
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 120226 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-04-2008 08:55 CDT
Last Modified:              06-04-2008 10:16 CDT
====================================================================== 
Summary:                    [patch] Using AddQueueMember with the membername
parameter causes minor issues
Description: 
If you pass the membername to the AddQueueMember application it does not
expose the interface name to the CLI to allow you to manually log off the
agent.  Tab completion on the interface returns the membername not the
interface which does not allow the removal.  
"queue remove member <tab>" in the example below gives:

asterisk*CLI> queue remove member Test from rrmemory 
Unable to remove interface 'Test' from queue 'rrmemory': Not there

Trying to remove it by the member name results in this:
asterisk*CLI> queue remove member "Test User" from rrmemory
Unable to remove interface 'Test User' from queue 'rrmemory': Not there

But if you know the interface ahead of time, you can do (But the tab
completion does not show the Local channel):
asterisk*CLI> queue remove member Local/1223 at queue-agents/n from rrmemory

Removed interface 'Local/1223 at queue-agents/n' from queue 'rrmemory'



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

---------------------------------------------------------------------- 
 atis - 06-04-08 10:16  
---------------------------------------------------------------------- 
The second patch will definitely make output of "queue show" longer than 80
chars, which is currently defined for max_buf. 

Additionally I think membername and interface should be somehow separated,
as membername is allowed to contain spaces. I propose the following:

22901        has 0 calls (max unlimited) in 'custom' strategy (0s
holdtime), W:5, C:0, A:0, SL:0.0% within 0s
   Members:
      Agent/21168 on Local/21168 at default_queue with penalty 5 (realtime)
(Not in use) has taken 3 calls (last call was 176226 secs ago)

where

Agent/21168 is membername and
Local/21168 at default_queue is interface 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-04-08 10:16  atis           Note Added: 0087808                          
======================================================================




More information about the asterisk-bugs mailing list