[asterisk-bugs] [Asterisk-GUI 0013695]: Active Channels not working - found a solution

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 15 17:44:27 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13695 
====================================================================== 
Reported By:                sumo
Assigned To:                bkruse
====================================================================== 
Project:                    Asterisk-GUI
Issue ID:                   13695
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 3953 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-15 00:46 CDT
Last Modified:              2008-10-15 17:44 CDT
====================================================================== 
Summary:                    Active Channels not working  -  found a solution
Description: 
In a nutshell, I could not get the Active Channels page to work for me not
matter what configuration I tried. I attempted to use may revision with no
result. I eventually got it working by editing index.js on line 455. It
seems that the problem was that no Object parameter was passed to
getChunksFromManagerOutput method do the test
chunks[0].hasOwnProperty('Channel') would not work. Will there be any side
effects to changing that method?

Hope this helps.

-sumo

P.S. Final solution was with revision 3953 and asterisk 1.4.21.2
====================================================================== 

---------------------------------------------------------------------- 
 (0093796) bkruse (manager) - 2008-10-15 17:44
 http://bugs.digium.com/view.php?id=13695#c93796 
---------------------------------------------------------------------- 
Hmm, well, the reason we do chunks[0].hasOwnProperty is because we pop-off
the first part of the array, after we check it, instead of iterating
through the loop (better memory efficiency).

The reason we use hasOwnProperty, is NOT iterate through the array and
prototyped properties like chuncks[0].length.

If you can write a patch, I will be more than interested to take it and
commit it. I have been trying to re-create it and cannot really.

-bk 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-15 17:44 bkruse         Note Added: 0093796                          
======================================================================




More information about the asterisk-bugs mailing list