pari: branch asterisknow r1912 - /branches/asterisknow/config/digital.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Wed Dec 5 17:49:34 CST 2007
Author: pari
Date: Wed Dec 5 17:49:33 2007
New Revision: 1912
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1912
Log:
define fxo, fxs ports only if they exist
Modified:
branches/asterisknow/config/digital.html
Modified: branches/asterisknow/config/digital.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/digital.html?view=diff&rev=1912&r1=1911&r2=1912
==============================================================================
--- branches/asterisknow/config/digital.html (original)
+++ branches/asterisknow/config/digital.html Wed Dec 5 17:49:33 2007
@@ -637,9 +637,12 @@
}
// write back any actual analog ports
- uri += build_action('append', c, context, 'fxoks', parent.FXO_PORTS_DETECTED.join(',')); c++;
- uri += build_action('append', c, context, 'fxsks', parent.FXS_PORTS_DETECTED.join(',')); c++;
-
+ if( parent.FXO_PORTS_DETECTED.length){
+ uri += build_action('append', c, context, 'fxoks', parent.FXO_PORTS_DETECTED.join(',')); c++;
+ }
+ if( parent.FXS_PORTS_DETECTED.length){
+ uri += build_action('append', c, context, 'fxsks', parent.FXS_PORTS_DETECTED.join(',')); c++;
+ }
uri += build_action('append', c, context, 'loadzone', _$('loadZone').value); c++;
uri += build_action('append', c, context, 'defaultzone', 'us'); c++;
More information about the asterisk-gui-commits
mailing list