rbrindley: branch 2.0 r4836 - in /branches/2.0/config: ./ js/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Jun 4 13:33:49 CDT 2009
Author: rbrindley
Date: Thu Jun 4 13:33:46 2009
New Revision: 4836
URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4836
Log:
- added echocanceller support in hardware_dahdi page
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://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/hardware_dahdi.html?view=diff&rev=4836&r1=4835&r2=4836
==============================================================================
--- branches/2.0/config/hardware_dahdi.html (original)
+++ branches/2.0/config/hardware_dahdi.html Thu Jun 4 13:33:46 2009
@@ -278,6 +278,17 @@
</select>
</div>
<div>
+ <span>echo canceller <img src="images/tooltip_info.gif" tip="en,opermode_settings,8" class='tooltipinfo'>:</span>
+ <input type='checkbox' id='enable_disable_checkbox_echocan'>
+ <select id="echocan" dfalt='0'>
+ <option value="0">mg2</option>
+ <option value="1">kb1</option>
+ <option value="2">sec</option>
+ <option value="3">sec2</option>
+ <option value="4">hpec</option>
+ </select>
+ </div>
+ <div>
<span>a-law override <img src="images/tooltip_info.gif" tip="en,opermode_settings,1" class='tooltipinfo'>:</span>
<input type='checkbox' id='enable_disable_checkbox_alawoverride'>
<select id="alawoverride" dfalt='0'>
Modified: branches/2.0/config/js/hardware_dahdi.js
URL: http://svn.asterisk.org/svn-view/asterisk-gui/branches/2.0/config/js/hardware_dahdi.js?view=diff&rev=4836&r1=4835&r2=4836
==============================================================================
--- branches/2.0/config/js/hardware_dahdi.js (original)
+++ branches/2.0/config/js/hardware_dahdi.js Thu Jun 4 13:33:46 2009
@@ -38,6 +38,7 @@
// if the user does not have any hardware - always set parent.sessionData.REQUIRE_RESTART to false
var SPANCOUNT_LOCATION = {}; // this object is used to store the number of spans found in each location Ex: SPANCOUNT_LOCATION['PCI Bus 02 Slot 04'] = 4;
var portsSignalling = {};
+var echocans = {'mg2':'0', 'kb1':'1', 'sec':'2', 'sec2':'3', 'hpec':'4'};
var digital_miscFunctions = {
show_analog_signalling_form: function(a){ //digital_miscFunctions.show_analog_signalling_form()
@@ -583,7 +584,11 @@
try{
if( line.beginsWith('loadzone=')) {
ASTGUI.selectbox.selectOption( _$('loadZone'), line.withOut('loadzone=') );
- return;
+ } else if (line.beginsWith('echocanceller=')) {
+ ASTGUI.selectbox.selectOption( _$('echocan'), echocans[line.withOut('echocanceller=').split(',')[0]]);
+ ASTGUI.domActions.enableDisableByCheckBox ('enable_disable_checkbox_echocan', 'echocan') ;
+ _$('enable_disable_checkbox_echocan').checked = true;
+ _$('enable_disable_checkbox_echocan').updateStatus();
}
}catch(err){
_$('loadZone').selectedIndex = 0;
@@ -1071,6 +1076,11 @@
})();
}
+ if ($('#enable_disable_checkbox_echocan:checked').val() != null) {
+ /* this is a global setting for all ports, and there are no side effects
+ * if you apply an echocan to a non-existing port */
+ x.new_action('append', context, 'echocanceller', $('#echocan option:selected').text() + ',1-240');
+ }
x.new_action('append', context, 'loadzone', _$('loadZone').value );
x.new_action('append', context, 'defaultzone', _$('loadZone').value );
x.callActions( applySettings.cleanUsersConf );
More information about the asterisk-gui-commits
mailing list