[asterisk-bugs] [Asterisk 0011330]: [patch] CHANNELS dialplan function, get channel list in the dialplan

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jun 3 19:27:36 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11330 
====================================================================== 
Reported By:                rain
Assigned To:                svnbot
====================================================================== 
Project:                    Asterisk
Issue ID:                   11330
Category:                   Functions/NewFeature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             11-20-2007 15:54 CST
Last Modified:              06-03-2008 19:27 CDT
====================================================================== 
Summary:                    [patch] CHANNELS dialplan function, get channel list
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.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-03-08 19:27  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 120279

_U  team/seanbright/resolve-shadow-warnings/
U   team/seanbright/resolve-shadow-warnings/CHANGES
U   team/seanbright/resolve-shadow-warnings/Makefile
U   team/seanbright/resolve-shadow-warnings/apps/app_queue.c
U   team/seanbright/resolve-shadow-warnings/channels/chan_iax2.c
D   team/seanbright/resolve-shadow-warnings/configs/pbx_realtime.conf
U   team/seanbright/resolve-shadow-warnings/funcs/func_channel.c
U   team/seanbright/resolve-shadow-warnings/include/asterisk/options.h
U   team/seanbright/resolve-shadow-warnings/main/asterisk.c
U   team/seanbright/resolve-shadow-warnings/main/config.c
U   team/seanbright/resolve-shadow-warnings/main/pbx.c
U   team/seanbright/resolve-shadow-warnings/pbx/pbx_loopback.c
U   team/seanbright/resolve-shadow-warnings/pbx/pbx_realtime.c
U   team/seanbright/resolve-shadow-warnings/res/res_agi.c

------------------------------------------------------------------------
r120279 | seanbright | 2008-06-03 19:27:31 -0500 (Tue, 03 Jun 2008) | 90
lines

Merged revisions 120166,120169,120171,120174,120227,120230 via svnmerge
from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r120166 | mmichelson | 2008-06-03 17:22:52 -0400 (Tue, 03 Jun 2008) | 13
lines

Adding two new queue log events. The ADDMEMBER event is logged when
a dynamic realtime queue member is added to the queue, and the 
REMOVEMEMBER event is logged when a dynamic realtime member is
removed. Since no calling channel is associated with these events
the string "REALTIME" is placed where the channel's unique id is
normally placed.

(closes issue http://bugs.digium.com/view.php?id=12774)
Reported by: atis
Patches:
      queue_log_rt_members.patch uploaded by atis (license 242)


................
r120169 | russell | 2008-06-03 17:35:11 -0400 (Tue, 03 Jun 2008) | 12
lines

Merged revisions 120168 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120168 | russell | 2008-06-03 16:34:55 -0500 (Tue, 03 Jun 2008) | 4 lines

Fix another place where peer->callno could change at a very bad time, and
also
fix a place where a peer was used after the reference was released.
(inspired by rev 120001)

........

................
r120171 | tilghman | 2008-06-03 18:05:16 -0400 (Tue, 03 Jun 2008) | 5
lines

Move compatibility options into asterisk.conf, default them to on for
upgrades,
and off for new installations.  This includes the translation from pipes
to commas
for pbx_realtime and the EXEC command for AGI, as well as the change to
the Set
application not to support multiple variables at once.

................
r120174 | jpeeler | 2008-06-03 18:17:07 -0400 (Tue, 03 Jun 2008) | 14
lines

Merged revisions 120173 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120173 | jpeeler | 2008-06-03 17:15:33 -0500 (Tue, 03 Jun 2008) | 6 lines

(closes issue http://bugs.digium.com/view.php?id=11594)
Reported by: yem
Tested by: yem

This change decreases the buffer size allocated on the stack substantially
in config_text_file_load when LOW_MEMORY is turned on. This change combined
with the fix from revision 117462 (making mkintf not copy the zt_chan_conf
structure) was enough to prevent the crash.

........

................
r120227 | tilghman | 2008-06-03 18:42:03 -0400 (Tue, 03 Jun 2008) | 16
lines

Merged revisions 120226 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r120226 | tilghman | 2008-06-03 17:41:04 -0500 (Tue, 03 Jun 2008) | 8
lines

Due to incorrect use of the AST_LIST_INSERT_HEAD() macro the loopback
switch
cannot perform any translation on the extension number before searching
for it
in the target context.
(closes issue http://bugs.digium.com/view.php?id=12473)
 Reported by: chappell
 Patches: 
       pbx_loopback.c.diff uploaded by chappell (license 8)

........

................
r120230 | tilghman | 2008-06-03 19:17:33 -0400 (Tue, 03 Jun 2008) | 7
lines

Add a function, CHANNELS(), which retrieves a list of all active channels.
(closes issue http://bugs.digium.com/view.php?id=11330)
 Reported by: rain
 Patches: 
       func_channel-channel_list_function.diff uploaded by rain (license
327)
       (with some additional changes by me, mostly to meet coding
guidelines)

................

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-03-08 19:27  svnbot         Checkin                                      
06-03-08 19:27  svnbot         Note Added: 0087770                          
======================================================================




More information about the asterisk-bugs mailing list