pari: branch 2.0 r4351 - /branches/2.0/config/js/misdn.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Dec 15 14:35:15 CST 2008


Author: pari
Date: Mon Dec 15 14:35:14 2008
New Revision: 4351

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4351
Log:

 ABE-1716 : make sure a master_clock is always set for the bri card.
            If one is not specified, default to the first one.



Modified:
    branches/2.0/config/js/misdn.js

Modified: branches/2.0/config/js/misdn.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/misdn.js?view=diff&rev=4351&r1=4350&r2=4351
==============================================================================
--- branches/2.0/config/js/misdn.js (original)
+++ branches/2.0/config/js/misdn.js Mon Dec 15 14:35:14 2008
@@ -227,12 +227,18 @@
 		if(PORTS[k]['portType']){ pmode_ports[PORTS[k]['portType']].push(k); }
 	}}
 
-
-	for( var k in PORTS ){ if( PORTS.hasOwnProperty(k) ){ 
+	var tmp_optionMaster_clock ;
+	for( var k in PORTS ){ if( PORTS.hasOwnProperty(k) ){
 		if( PORTS[k]['option'] ){
 			x.new_action('append', d , 'option',  k + ',' + PORTS[k]['option']);
+		if( PORTS[k]['option'] == 'master_clock' ){
+			tmp_optionMaster_clock = k;
+		}
 		}
 	}}
+	if( !tmp_optionMaster_clock ){
+		x.new_action( 'append', d , 'option', '1,master_clock' );
+	}
 
 	for( var k in pmode_ports ){ if( pmode_ports.hasOwnProperty(k) && pmode_ports[k].length ){
 		x.new_action('append', d , k , pmode_ports[k].join(','));




More information about the asterisk-gui-commits mailing list