rbrindley: branch 2.0 r4995 - in /branches/2.0/config: ./ js/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Feb 15 03:24:31 CST 2010


Author: rbrindley
Date: Mon Feb 15 03:24:27 2010
New Revision: 4995

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

- added pridialplan and prilocaldialplan to the digital span settings


Modified:
    branches/2.0/config/hardware_dahdi.html
    branches/2.0/config/js/hardware_dahdi.js

Modified: branches/2.0/config/hardware_dahdi.html
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/hardware_dahdi.html?view=diff&rev=4995&r1=4994&r2=4995
==============================================================================
--- branches/2.0/config/hardware_dahdi.html (original)
+++ branches/2.0/config/hardware_dahdi.html Mon Feb 15 03:24:27 2010
@@ -450,7 +450,30 @@
 				</select>
 			</TD>
 		</TR>
-
+		<TR>
+			<TD align="right" valign="top">Pridialplan:</TD>
+			<TD>
+				<select id="editspan_pridialplan">
+					<option value="national">National</option>
+					<option value="unknown">Unknown</option>
+					<option value="local">Local</option>
+					<option value="private">Private</option>
+					<option value="international">International</option>
+				</select>
+			</TD>
+		</TR>
+		<TR>
+			<TD align="right" valign="top">Prilocaldialplan:</TD>
+			<TD>
+				<select id="editspan_prilocaldialplan">
+					<option value="national">National</option>
+					<option value="unknown">Unknown</option>
+					<option value="local">Local</option>
+					<option value="private">Private</option>
+					<option value="international">International</option>
+				</select>
+			</TD>
+		</TR>
 		<TR>    <TD align="right" valign=top>Channels:</TD>
 			<TD>    <table border=0 cellpadding=2 cellspacing=1>
 					<tr>	<td> Use : <select id="edit_DefinedChans"></select>	</td>	</tr>

Modified: branches/2.0/config/js/hardware_dahdi.js
URL: http://svnview.digium.com/svn/asterisk-gui/branches/2.0/config/js/hardware_dahdi.js?view=diff&rev=4995&r1=4994&r2=4995
==============================================================================
--- branches/2.0/config/js/hardware_dahdi.js (original)
+++ branches/2.0/config/js/hardware_dahdi.js Mon Feb 15 03:24:27 2010
@@ -266,6 +266,13 @@
 		ASTGUI.selectbox.selectOption( _$('editspan_switchtype') , SPANS[l]['switchtype'] );
 	}else{
 		_$('editspan_switchtype').selectedIndex = -1 ;
+	}
+
+	if(SPANS[l]['pridialplan']) {
+		ASTGUI.selectbox.selectOption( _$('editspan_pridialplan'), SPANS[l]['pridialplan']);
+	}
+	if(SPANS[l]['prilocaldialplan']) {
+		ASTGUI.selectbox.selectOption( _$('editspan_prilocaldialplan'), SPANS[l]['prilocaldialplan']);
 	}
 
 	(function (){
@@ -736,6 +743,8 @@
 	SPANS[b]['switchtype'] = _$('editspan_switchtype').value;
 	SPANS[b]['syncsrc'] = _$('editspan_syncsrc').value;
 	SPANS[b]['lbo'] = _$('editspan_lbo').value;
+	SPANS[b]['pridialplan'] = _$('editspan_pridialplan').value;
+	SPANS[b]['prilocaldialplan'] = _$('editspan_prilocaldialplan').value;
 
 	_$('row'+ b).style.background = "#C9AAAA";
 
@@ -990,6 +999,10 @@
 				pri_trunk['hassip'] = 'no';
 			x.new_action('update', d , "hasiax", 'no');
 				pri_trunk['hasiax'] = 'no';
+			x.new_action('update', d , "pridialplan", SPANS[k]['pridialplan']);
+				pri_trunk['pridialplan'] = SPANS[k]['pridialplan'];
+			x.new_action('update', d , "prilocaldialplan", SPANS[k]['prilocaldialplan']);
+				pri_trunk['prilocaldialplan'] = SPANS[k]['prilocaldialplan'];
 
 			if ( !SPANS[k]['signalling'].beginsWith('fxo') ){ 
 				// we do not want a context to be set for user stations




More information about the asterisk-gui-commits mailing list