pari: branch asterisknow r1904 - /branches/asterisknow/config/cfgbasic.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Dec 5 11:43:24 CST 2007
Author: pari
Date: Wed Dec 5 11:43:23 2007
New Revision: 1904
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1904
Log:
consider only ports that are not FAILED
Modified:
branches/asterisknow/config/cfgbasic.html
Modified: branches/asterisknow/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/cfgbasic.html?view=diff&rev=1904&r1=1903&r2=1904
==============================================================================
--- branches/asterisknow/config/cfgbasic.html (original)
+++ branches/asterisknow/config/cfgbasic.html Wed Dec 5 11:43:23 2007
@@ -56,11 +56,11 @@
for( var d in c ){ if (c.hasOwnProperty(d) ) {
c[d].each(
function( item ) {
- if( item.beginsWith('port') && item.contains('FXO') ){ // we are looking for item if it is in the format 'port=4,FXO'
+ if( item.beginsWith('port') && item.contains('FXO') && !item.contains('FAILED') ){ // we are looking for item if it is in the format 'port=4,FXO'
y = item.split('=')[1].split(',')[0];
FXO_PORTS_DETECTED.push(y);
}
- if( item.beginsWith('port') && item.contains('FXS') ){ // we are looking for item if it is in the format 'port=4,FXO'
+ if( item.beginsWith('port') && item.contains('FXS') && !item.contains('FAILED') ){ // we are looking for item if it is in the format 'port=4,FXO'
y = item.split('=')[1].split(',')[0];
FXS_PORTS_DETECTED.push(y);
}
More information about the asterisk-gui-commits
mailing list