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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 15 17:46:20 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:46 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
====================================================================== 

---------------------------------------------------------------------- 
 (0093798) sumo (reporter) - 2008-10-15 17:46
 http://bugs.digium.com/view.php?id=13695#c93798 
---------------------------------------------------------------------- 
Index: config/js/index.js
===================================================================
--- config/js/index.js	(revision 3957)
+++ config/js/index.js	(working copy)
@@ -449,9 +449,10 @@
 
 	listOfChannels: function() { // miscFunctions.listOfChannels() --
returns an array of current active channels
 		var raw_chan_status = makeSyncRequest ( { action :'status' } );
+		var o = {};
 		var to_return = [];
 		try {
-			var chunks = ASTGUI.miscFunctions.getChunksFromManagerOutput(
raw_chan_status.trim().replace(/Event: StatusComplete/, "") ) ;
+			var chunks = ASTGUI.miscFunctions.getChunksFromManagerOutput(
raw_chan_status.trim().replace(/Event: StatusComplete/, ""), o ) ;
 			while( chunks.length ){
 				if( chunks[0].hasOwnProperty('Channel') ){
 					to_return.push(chunks[0]); 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-15 17:46 sumo           Note Added: 0093798                          
======================================================================




More information about the asterisk-bugs mailing list