rbrindley: branch 2.0 r4847 - in /branches/2.0/config: ./ js/
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Jun 9 17:56:14 CDT 2009
Author: rbrindley
Date: Tue Jun 9 17:56:11 2009
New Revision: 4847
URL: http://svn.asterisk.org/svn-view/asterisk-gui?view=rev&rev=4847
Log:
- added support for VPMADT032 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=4847&r1=4846&r2=4847
==============================================================================
--- branches/2.0/config/hardware_dahdi.html (original)
+++ branches/2.0/config/hardware_dahdi.html Tue Jun 9 17:56:11 2009
@@ -351,6 +351,27 @@
<span>Neon MWI voltage Level:</span><input id="neonmwi_level" size=2>
<span>Neon MWI off Limit (ms):</span><input id="neonmwi_offlimit" size=4>
</div>
+ <div>
+ <span>VPM Settings:</span>
+ </div>
+ <div>
+ <span>Echo Cancellation NLP Type <img src="images/tooltip_info.gif" tip="en,opermode_settings,8" class='tooltipinfo'> :</span>
+ <select id="vpmnlptype">
+ <option value="0">None</option>
+ <option value="1">Mute</option>
+ <option value="2">Random Noise</option>
+ <option value="3">Hoth Noise</option>
+ <option value="4">Suppression NLP (default)</option>
+ </select>
+ </div>
+ <div>
+ <span>Echo Cancellation NLP Threshold <img src="images/tooltip_info.gif" tip="en,opermode_settings,9" class='tooltipinfo'> :</span>
+ <select id="vpmnlpthresh"></select>
+ </div>
+ <div>
+ <span>Echo Cancellation NLP Max Suppression <img src="images/tooltip_info.gif" tip="en,opermode_settings,10" class='tooltipinfo'> :</span>
+ <select id="vpmnlpmaxsupp"></select>
+ </div>
</div>
<div style="text-align:center; overflow:auto;left:40">
<span class='guiButtonCancel' id="cancel_b" onclick='window.location.reload();'>Cancel Changes</span>
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=4847&r1=4846&r2=4847
==============================================================================
--- branches/2.0/config/js/hardware_dahdi.js (original)
+++ branches/2.0/config/js/hardware_dahdi.js Tue Jun 9 17:56:11 2009
@@ -828,6 +828,10 @@
u.new_action('update', 'general', 'fwringdetect', $('#fwringdetect').val());
}
+ u.new_action('update', 'general', 'vpmnlptype', $('#vpmnlptype').val());
+ u.new_action('update', 'general', 'vpmnlpthresh', $('#vpmnlpthresh').val());
+ u.new_action('update', 'general', 'vpmnlpmaxsupp', $('#vpmnlpmaxsupp').val());
+
u.callActions();
u.clearActions();
@@ -881,6 +885,13 @@
params += " neonmwi_monitor=0";
}
}
+
+ h = ASTGUI.getFieldValue('vpmnlptype') ;
+ if(h){ params += " vpmnlptype=" + h; }
+ h = ASTGUI.getFieldValue('vpmnlpthresh') ;
+ if(h){ params += " vpmnlpthresh=" + h; }
+ h = ASTGUI.getFieldValue('vpmnlpmaxsupp');
+ if(h){ params += " vpmnlpmaxsupp=" + h; }
var cmd2 = "echo \"" + params + "\" >> /etc/modprobe.conf ";
@@ -1219,6 +1230,9 @@
ASTGUI.domActions.enableDisableByCheckBox ('enable_disable_checkbox_fxshonormode', 'fxshonormode') ;
ASTGUI.domActions.enableDisableByCheckBox ('enable_disable_checkbox_alawoverride', 'alawoverride') ;
ASTGUI.COMBOBOX.call( _$('zap_moduleName'), DRIVERS_LIST, 195);
+ ASTGUI.selectbox.populateOptions('vpmnlpthresh', 50);
+ ASTGUI.selectbox.populateOptions('vpmnlpmaxsupp', 50);
+ ASTGUI.selectbox.insert_before('vpmnlpmaxsupp', '0', '0', 0);
var config = context2json ({
filename: ASTGUI.globals.configfile,
@@ -1252,6 +1266,9 @@
ASTGUI.updateFieldToValue('mwimode', config.getProperty('mwimode'));
_$('enable_disable_checkbox_mwimode').checked = (config.getProperty('mwimode')) ? true : false ;
_$('enable_disable_checkbox_mwimode').updateStatus();
+ ASTGUI.updateFieldToValue('vpmnlptype', config.getProperty('vpmnlptype') || '4');
+ ASTGUI.updateFieldToValue('vpmnlpthresh', config.getProperty('vpmnlpthresh') || '24');
+ ASTGUI.updateFieldToValue('vpmnlpmaxsupp', config.getProperty('vpmnlpmaxsupp') || '24');
top.log.debug("end of function: window.onload()");
loadConfigFiles.load_hwcfgfile(); // try to load last detected/configured hardware information
More information about the asterisk-gui-commits
mailing list