[asterisk-bugs] [Asterisk 0011330]: No clean way to get a list of active channels in the dialplan

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 20 15:57:29 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11330 
====================================================================== 
Reported By:                rain
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11330
Category:                   Functions/func_channel
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-20-2007 15:54 CST
Last Modified:              11-20-2007 15:57 CST
====================================================================== 
Summary:                    No clean way to get a list of active channels in the
dialplan
Description: 
There is currently no clean way to get a list of active channels from
within the dialplan -- the cleanest method that's currently possible is an
AGI script, which requires the extra overhead of spawning a new process. 
Since I need to fetch the channel list for each call attempt to an agent
(from app_queue), the wasted CPU time would be substantial.
====================================================================== 

---------------------------------------------------------------------- 
 rain - 11-20-07 15:57  
---------------------------------------------------------------------- 
The attached patch adds a function named CHANNELS() to
funcs/func_channel.c, which will return all active channels matching the
regular expression passed as an argument, or the entire list of active
channels if no argument is specified. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-20-07 15:57  rain           Note Added: 0074110                          
======================================================================




More information about the asterisk-bugs mailing list