pari: trunk r981 - /trunk/config/ringgroups.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Fri May 25 07:59:19 MST 2007


Author: pari
Date: Fri May 25 09:59:18 2007
New Revision: 981

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=981
Log:
zap channels into ringgroups

Modified:
    trunk/config/ringgroups.html

Modified: trunk/config/ringgroups.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/ringgroups.html?view=diff&rev=981&r1=980&r2=981
==============================================================================
--- trunk/config/ringgroups.html (original)
+++ trunk/config/ringgroups.html Fri May 25 09:59:18 2007
@@ -353,10 +353,21 @@
 			if(ie){el.add(h);} else{ el.add(h,null);}
 		}
 	}}
+	config2json('zapscan.conf', 1, read_zapchannels) ;
+}
+
+
+function read_zapchannels(c){
+	for( var d in c ){
+		if ( c.hasOwnProperty(d) && c[d]['port'] && (c[d]['port'] == 'fxo' ) ) {
+			LISTOFCHANNELS['Zap/'+d] = true;
+		}
+	}
 
 	clear_table();
 	showlist_of_rules();
 }
+
 
 function parse_addtoringgroups(u, v){
 	//ringgroups



More information about the asterisk-gui-commits mailing list