bkruse: branch asterisknow r1692 - /branches/asterisknow/config/misdn.html
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Tue Oct 16 15:26:00 CDT 2007
Author: bkruse
Date: Tue Oct 16 15:25:59 2007
New Revision: 1692
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1692
Log:
more additions for mISDN. As pari mentioned, we will write for users.conf for the GUI to read, and misdn.conf for chan_misdn to read....but not yet.
Modified:
branches/asterisknow/config/misdn.html
Modified: branches/asterisknow/config/misdn.html
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/config/misdn.html?view=diff&rev=1692&r1=1691&r2=1692
==============================================================================
--- branches/asterisknow/config/misdn.html (original)
+++ branches/asterisknow/config/misdn.html Tue Oct 16 15:25:59 2007
@@ -203,12 +203,14 @@
function localajaxinit(){
menu = document.getElementById('mymenu');
- setWindowTitle("Digital Setup Wizard");
+ setWindowTitle("mISDN Setup Wizard");
top._$('mainscreen').width= 798;
_$('save_b').disabled = true;
_$('cancel_b').disabled = true;
ASTGUI.events.add( _$('bridging') , "change" , function(){_$('save_b').disabled = false; _$('cancel_b').disabled = false;}) ;
+ ASTGUI.events.add( _$('echocancel') , "change" , function(){_$('save_b').disabled = false; _$('cancel_b').disabled = false;}) ;
+ ASTGUI.events.add( _$('echotraining') , "change" , function(){_$('save_b').disabled = false; _$('cancel_b').disabled = false;}) ;
showdiv_statusmessage(); // create status message dialog
_$('message_text').innerHTML = "Detecting Digital Cards ... (Beta)";
@@ -236,17 +238,18 @@
oldSpanCount = 0;
oldLoadZone ='us';
setTimeout( function(){ parent.astmanEngine.run_tool("/bin/touch /etc/asterisk/applyzap.conf", function(){} ); } , 100);
-
}else{
try{
+ if ( n['default']['bridging'] ) { ASTGUI.selectbox.selectOption( _$('bridging'), n['general'][i].split('bridging=')[1]); }
for (var i=0; i < n['general'].length; i++){
if( n['general'][i].beginsWith('span=') ){ oldSpanCount++; continue; }
- if( n['general'][i].contains('bridging=') ){
- oldLoadZone = n['general'][i].split('bridging=')[1];
- ASTGUI.selectbox.selectOption( _$('bridging') , oldLoadZone );
- continue;
+ tmpfields = ['echocancel', 'echotraining'];
+ for (var x=0; x < tmpfields.length; x++) {
+ if( n['general'][i].contains(tmpfields[x]+'=') ){
+ ASTGUI.selectbox.selectOption( _$(tmpfields[x]) , n['general'][i].split(tmpfields[x]+'=')[1]);
+ continue;
+ }
}
-
}
}catch(err){
@@ -465,6 +468,9 @@
uri += build_action('append', c, context, 'bchan', bchanstring); c++;
uri += build_action('append', c, context, 'dchan', dchanstring); c++;
uri += build_action('append', c, context, 'bridging', _$('bridging').value); c++;
+ var gen = "general";
+ uri += build_action('append', c, gen, 'echocancel', _$('echocancel').value); c++;
+ uri += build_action('append', c, gen, 'echotraining', _$('echotraining').value); c++;
//uri += build_action('append', c, context, 'defaultzone', 'us'); c++;
}();
makerequest('u', "applyzap.conf", uri , function(t) { applySettings.updateUsersConf(); });
@@ -493,8 +499,24 @@
<div style="overflow:auto;left:40" id="div_digitalcardstable">
<table class="taglist" id="digitalcardstable" cellpadding=5 cellspacing=1 border=0 align=center></table>
<table cellpadding=5 cellspacing=1 align=center border=0>
+ <h2>General mISDN Settings</h2>
<tr> <td align="right">Bridging :
<select id="bridging">
+ <option value="yes">Yes</option>
+ <option value="no">No</option>
+ </select>
+ </td>
+ <td align="right">Echo Cancel :
+ <select id="echocancel">
+ <option value="0">0 (No)</option>
+ <option value="32">32 MS</option>
+ <option value="64">64 MS</option>
+ <option value="128">128 MS</option>
+ <option value="256">256 MS</option>
+ </select>
+ </td>
+ <td align="right">Echo Training :
+ <select id="echotraining">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
More information about the asterisk-gui-commits
mailing list