pari: trunk r456 - /trunk/config/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Mar 20 17:59:50 MST 2007
Author: pari
Date: Tue Mar 20 19:59:49 2007
New Revision: 456
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=456
Log:
cleaning up dom optimizations and also properly indented all the code
Modified:
trunk/config/backup.html
trunk/config/home.html
trunk/config/iax.html
trunk/config/incoming.html
trunk/config/jabber.html
trunk/config/jingle.html
trunk/config/localexts.html
trunk/config/meetme.html
trunk/config/menus.html
trunk/config/moh.html
trunk/config/numberplan.html
trunk/config/options.html
trunk/config/queues.html
trunk/config/record.html
trunk/config/sip.html
trunk/config/status.html
trunk/config/sysinfo.html
trunk/config/trunks.html
trunk/config/users.html
trunk/config/voicemail.html
trunk/config/zapata.html
Modified: trunk/config/backup.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/backup.html?view=diff&rev=456&r1=455&r2=456
==============================================================================
--- trunk/config/backup.html (original)
+++ trunk/config/backup.html Tue Mar 20 19:59:49 2007
@@ -57,8 +57,6 @@
// $('message_text').innerHTML = "<A href=\"#\" onclick=\"removebkpfile()\">I have downloaded the file</A><BR><BR>" + "<A href=\"./bkps/"+ bkpfile +"\" onclick=\"showremovebkpfile()\">ReDownload</A>";
}
-
-
function download_bkp(){
var today=new Date()
@@ -86,14 +84,12 @@
<div class="mainscreenContentBox" id="userscontent">
<table class="mainscreenTable" align="center">
<tr> <td align=center height=30><BR><BR><div id="status"></div></td></tr>
- <tr>
- <td valign="top" align="center">
+ <tr> <td valign="top" align="center">
<BR><BR>
<Input type="button" onclick="removebkpfile()" value="Download a Configuration backup">
</td>
</tr>
- <tr>
- <td valign="top" align="center">
+ <tr> <td valign="top" align="center">
<BR><BR>
<font size="-1">
Note: Restoring a configuration backup will be added soon to this section !<BR>
Modified: trunk/config/home.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/home.html?view=diff&rev=456&r1=455&r2=456
==============================================================================
--- trunk/config/home.html (original)
+++ trunk/config/home.html Tue Mar 20 19:59:49 2007
@@ -23,127 +23,127 @@
<link href="stylesheets/rico.css" media="all" rel="Stylesheet" type="text/css" />
<link href="stylesheets/schwing.css" media="all" rel="Stylesheet" type="text/css" />
<script>
- var demo = new Object;
- var localloggedon = -1;
- var asterisk_guitools = parent.asterisk_guitools;
-
- function updateButtons(){
- var f = parent.loggedon;
- _$('username').disabled = (f)?1:0;
- _$('secret').disabled = (f)?1:0;
- _$('logoff').disabled = (f)?0:1;
- _$('reloadconfig').disabled = (f)?0:1;
- _$('login').disabled = (f)?1:0;
- if(!f){ try{ _$('username').focus();}catch(err){ } }
- }
-
- function loggedOn() {
- if ((parent.loggedon == 1) && (localloggedon == 1))
- return;
- if(_$('secret').value=="password"){
- parent.loggedon = 1;
- localloggedon = 1;
- parent.document.getElementById('logoutlink').innerHTML = "Logout";
- parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
- parent.gui_alert("You are using the default password provided by AsteriskNOW !! \n\n It is strongly recommended that you change your default password ");
- window.location.href="options.html";
- return;
- }
-
- //if(!asterisk_guitools || !correct version || !hasSetup ){
- // redirect to setup
- //}
-
- if( parent.asterisk_guitools_inextconf == 0){
- checkessentials();
- }
-
- parent.setLoggedOn(1);
+var demo = new Object;
+var localloggedon = -1;
+var asterisk_guitools = parent.asterisk_guitools;
+
+function updateButtons(){
+ var f = parent.loggedon;
+ _$('username').disabled = (f)?1:0;
+ _$('secret').disabled = (f)?1:0;
+ _$('logoff').disabled = (f)?0:1;
+ _$('reloadconfig').disabled = (f)?0:1;
+ _$('login').disabled = (f)?1:0;
+ if(!f){ try{ _$('username').focus();}catch(err){ } }
+}
+
+function loggedOn() {
+ if ((parent.loggedon == 1) && (localloggedon == 1)){ return; }
+ if(_$('secret').value=="password"){
parent.loggedon = 1;
localloggedon = 1;
- _$('username').className = "input9_disabled";
- _$('secret').className = "input9_disabled";
- updateButtons();
- _$('statusbar').innerHTML = "<img src='images/tick.gif'><i>Connected!</i>";
parent.document.getElementById('logoutlink').innerHTML = "Logout";
parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
- }
-
- function loggedOff() {
- if ((parent.loggedon == 0) && (localloggedon == 0))
- return;
- parent.setLoggedOn(0);
- parent.document.getElementById('logoutlink').innerHTML = " ";
- localloggedon = 0;
- _$('username').className = "input9";
- _$('secret').className = "input9";
- updateButtons();
- }
-
- demo.logoffs = function(msgs) {
- _$('statusbar').innerHTML = msgs[0].headers['message'];
+ parent.gui_alert("You are using the default password provided by AsteriskNOW !! \n\n It is strongly recommended that you change your default password ");
+ window.location.href="options.html";
+ return;
+ }
+
+ //if(!asterisk_guitools || !correct version || !hasSetup ){
+ // redirect to setup
+ //}
+
+ if( parent.asterisk_guitools_inextconf == 0){
+ checkessentials();
+ }
+
+ parent.setLoggedOn(1);
+ parent.loggedon = 1;
+ localloggedon = 1;
+ _$('username').className = "input9_disabled";
+ _$('secret').className = "input9_disabled";
+ updateButtons();
+ _$('statusbar').innerHTML = "<img src='images/tick.gif'><i>Connected!</i>";
+ parent.document.getElementById('logoutlink').innerHTML = "Logout";
+ parent.document.getElementById('logoutlink').onclick = parent.Logoff ;
+}
+
+function loggedOff() {
+ if ((parent.loggedon == 0) && (localloggedon == 0))
+ return;
+ parent.setLoggedOn(0);
+ parent.document.getElementById('logoutlink').innerHTML = " ";
+ localloggedon = 0;
+ _$('username').className = "input9";
+ _$('secret').className = "input9";
+ updateButtons();
+}
+
+demo.logoffs = function(msgs) {
+ _$('statusbar').innerHTML = msgs[0].headers['message'];
+ loggedOff();
+};
+
+demo.logins = function(msgs) {
+ _$('statusbar').innerHTML = msgs[0].headers['message'];
+ resp = msgs[0].headers['response'];
+ if (resp == "Success" || msgs[0].headers['message'] == "Invalid/unknown command" ){
+ _$('statusbar').innerHTML = "<img src='images/tick.gif'><i>Connected!</i>";
+ parent.astmanEngine.pollEvents();
+ loggedOn();
+ }else
loggedOff();
- };
-
- demo.logins = function(msgs) {
- _$('statusbar').innerHTML = msgs[0].headers['message'];
- resp = msgs[0].headers['response'];
- if (resp == "Success" || msgs[0].headers['message'] == "Invalid/unknown command" ){
- _$('statusbar').innerHTML = "<img src='images/tick.gif'><i>Connected!</i>";
- parent.astmanEngine.pollEvents();
- loggedOn();
- }else
- loggedOff();
- };
-
- demo.pongs = function(msgs) {
- resp = msgs[0].headers['response'];
- if (resp == "Pong") {
- _$('statusbar').innerHTML = "<i>Already connected...</i>";
- loggedOn();
- parent.loadscreen(this);
- } else {
- _$('statusbar').innerHTML = "<i>Please login...</i>";
- loggedOff();
- parent.loadscreen(this);
- }
- }
-
- function doLogin() {
- if( _$('username').value == "" ){
- parent.gui_alert("Please enter a Username");
- _$('username').focus();
- return true;
- }
-
- if( _$('secret').value == "" ){
- parent.gui_alert("Please enter a password");
- _$('secret').focus();
- return true;
- }
- parent.document.getElementById('login_name').value = _$('username').value ;
- _$('statusbar').innerHTML = "<i>Logging in...</i>";
- parent.astmanEngine.sendRequest('action=login&username=' + _$('username').value + "&secret=" + _$('secret').value, demo.logins);
- }
-
- function doLogoff() {
- if(!confirm("Are you sure ?")){ return true; }
- _$('statusbar').innerHTML = "<i>Logging off...</i>";
- parent.astmanEngine.sendRequest('action=logoff', demo.logoffs);
- }
- function localajaminit() {
- parent.astmanEngine.sendRequest('action=ping', demo.pongs);
- }
- function localinit() {
- var un = _$('username') ; var pwd = _$('secret') ;
- un.onFocus = function(){this.className = 'input9_hilight';}
- un.onBlur = function(){this.className = 'input9';}
- pwd.onFocus = function(){this.className = 'input9_hilight';}
- pwd.onBlur = function(){this.className = 'input9';}
- top.document.title = "Asterisk GUI (Beta) -- Home";
- localajaminit();
- }
-
+};
+
+demo.pongs = function(msgs) {
+ resp = msgs[0].headers['response'];
+ if (resp == "Pong") {
+ _$('statusbar').innerHTML = "<i>Already connected...</i>";
+ loggedOn();
+ parent.loadscreen(this);
+ } else {
+ _$('statusbar').innerHTML = "<i>Please login...</i>";
+ loggedOff();
+ parent.loadscreen(this);
+ }
+}
+
+function doLogin() {
+ if( _$('username').value == "" ){
+ parent.gui_alert("Please enter a Username");
+ _$('username').focus();
+ return true;
+ }
+
+ if( _$('secret').value == "" ){
+ parent.gui_alert("Please enter a password");
+ _$('secret').focus();
+ return true;
+ }
+ parent.document.getElementById('login_name').value = _$('username').value ;
+ _$('statusbar').innerHTML = "<i>Logging in...</i>";
+ parent.astmanEngine.sendRequest('action=login&username=' + _$('username').value + "&secret=" + _$('secret').value, demo.logins);
+}
+
+function doLogoff() {
+ if(!confirm("Are you sure ?")){ return true; }
+ _$('statusbar').innerHTML = "<i>Logging off...</i>";
+ parent.astmanEngine.sendRequest('action=logoff', demo.logoffs);
+}
+
+function localajaminit() {
+ parent.astmanEngine.sendRequest('action=ping', demo.pongs);
+}
+
+function localinit() {
+ var un = _$('username') ; var pwd = _$('secret') ;
+ un.onFocus = function(){this.className = 'input9_hilight';}
+ un.onBlur = function(){this.className = 'input9';}
+ pwd.onFocus = function(){this.className = 'input9_hilight';}
+ pwd.onBlur = function(){this.className = 'input9';}
+ top.document.title = "Asterisk GUI (Beta) -- Home";
+ localajaminit();
+}
function submitOnEnter(e){
if(e.keyCode == 13){
@@ -190,6 +190,7 @@
opt.parameters="action=updateconfig&reload=yes&srcfilename=" + encodeURIComponent("extensions.conf") + "&dstfilename=" + encodeURIComponent("extensions.conf") + uri;
var tmp = new Ajax.Request("../../rawman", opt);
}
+
</script>
<body id="foo" onload="localinit()" topmargin=0 bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
@@ -198,27 +199,31 @@
<div class="mainscreenContentBox" id="mailboxcontent">
<table class="mainscreenTable" width="100%">
<tr valign="top">
- <td colspan=2>
- <table align="center">
- <tr><td colspan="2"><h2>Asterisk™ Configuration Engine</h2></td>
- <tr><td>Username:</td><td><input disabled=1 id="username" class="input9" size=12></td></tr>
- <tr><td>Password:</td><td><input disabled=1 type="password" id="secret" class="input9" size=12 onKeyPress="submitOnEnter(event)"></td></tr>
- <tr><td colspan=2 align="center">
- <div id="statusbar">
- <span style="margin-left: 4px;font-weight:bold"> </span>
- </div>
- </td></tr>
-
- <tr><td align='center' colspan='2'>
- <input type="submit" id="reloadconfig" value="Reload Config" disabled=1 onClick="reloadConfig()">
-
- <input type="submit" id="login" value="Login" disabled=1 onClick="doLogin()" class="input">
-
- <input type="submit" id="logoff" value="Logoff" disabled=1 onClick="doLogoff()" class="input">
- </td>
- </tr>
- </table>
- </td>
+ <td colspan=2>
+ <table align="center">
+ <tr> <td colspan="2"><h2>Asterisk™ Configuration Engine</h2></td>
+ <tr> <td>Username:</td>
+ <td><input disabled=1 id="username" class="input9" size=12></td>
+ </tr>
+ <tr> <td>Password:</td>
+ <td><input disabled=1 type="password" id="secret" class="input9" size=12 onKeyPress="submitOnEnter(event)"></td>
+ </tr>
+ <tr> <td colspan=2 align="center">
+ <div id="statusbar">
+ <span style="margin-left: 4px;font-weight:bold"> </span>
+ </div>
+ </td>
+ </tr>
+ <tr> <td align='center' colspan='2'>
+ <input type="submit" id="reloadconfig" value="Reload Config" disabled=1 onClick="reloadConfig()">
+
+ <input type="submit" id="login" value="Login" disabled=1 onClick="doLogin()" class="input">
+
+ <input type="submit" id="logoff" value="Logoff" disabled=1 onClick="doLogoff()" class="input">
+ </td>
+ </tr>
+ </table>
+ </td>
</tr>
</table>
</div>
Modified: trunk/config/iax.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/iax.html?view=diff&rev=456&r1=455&r2=456
==============================================================================
--- trunk/config/iax.html (original)
+++ trunk/config/iax.html Tue Mar 20 19:59:49 2007
@@ -42,7 +42,7 @@
}
phonecallbacks.loaded = function() {
- $('hiddenfield').selectitem(0);
+ $('hiddenfield').selectitem(0);
}
function localajaxinit(){
@@ -118,9 +118,9 @@
for (var x=0; x < $('allowed').length ; x++){
if(x==0){
- $('allow').value = $('allowed').options[x].value ;
+ $('allow').value = $('allowed').options[x].value ;
}else{
- $('allow').value = $('allow').value + "," + $('allowed').options[x].value ;
+ $('allow').value = $('allow').value + "," + $('allowed').options[x].value ;
}
}
$('div_setordercodecs').style.display = "none";
@@ -129,33 +129,33 @@
$('cancel').disabled = false;
}
function cancel_ordercodecs(){
- $('bg_transparent').style.display = "none";
- $('div_setordercodecs').style.display = "none";
+ $('bg_transparent').style.display = "none";
+ $('div_setordercodecs').style.display = "none";
}
function update_div_setordercodecs(){
- $('disallowed').innerHTML=""; $('allowed').innerHTML="";
- if( $('disallow').value == "all" || $('disallow').value == ""){
- $('disallow_all').checked = true;
- selectbox_add("disallowed", "ulaw");
- selectbox_add("disallowed", "alaw");
- selectbox_add("disallowed", "gsm");
- selectbox_add("disallowed", "ilbc");
- selectbox_add("disallowed", "speex");
- selectbox_add("disallowed", "g726");
- selectbox_add("disallowed", "adpcm");
- selectbox_add("disallowed", "lpc10");
- selectbox_add("disallowed", "g729");
- }else{
- var tmp = $('disallow').value.split(",");
- for(var x=0; x < tmp.length; x++){
- selectbox_add("disallowed", tmp[x]);
- }
+ $('disallowed').innerHTML=""; $('allowed').innerHTML="";
+ if( $('disallow').value == "all" || $('disallow').value == ""){
+ $('disallow_all').checked = true;
+ selectbox_add("disallowed", "ulaw");
+ selectbox_add("disallowed", "alaw");
+ selectbox_add("disallowed", "gsm");
+ selectbox_add("disallowed", "ilbc");
+ selectbox_add("disallowed", "speex");
+ selectbox_add("disallowed", "g726");
+ selectbox_add("disallowed", "adpcm");
+ selectbox_add("disallowed", "lpc10");
+ selectbox_add("disallowed", "g729");
+ }else{
+ var tmp = $('disallow').value.split(",");
+ for(var x=0; x < tmp.length; x++){
+ selectbox_add("disallowed", tmp[x]);
}
- var tmp = $('allow').value.split(",");
- for(var x=0; x < tmp.length; x++){
- selectbox_add("allowed", tmp[x]);
- selectbox_remove("disallowed",tmp[x]);
- }
+ }
+ var tmp = $('allow').value.split(",");
+ for(var x=0; x < tmp.length; x++){
+ selectbox_add("allowed", tmp[x]);
+ selectbox_remove("disallowed",tmp[x]);
+ }
$('bg_transparent').style.display='';
$('div_setordercodecs').style.display='';
@@ -177,238 +177,203 @@
<span style="margin-left: 4px;font-weight:bold;">IAX (Inter Asterisk Exchange Protocol) Configuration </span>
<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" > <img src="images/refresh.png" title=" Refresh " border=0 > </span>
</div>
-
<div class="mainscreenContentBox" id="userscontent">
<div style="height :425px;width : 530px ; overflow :auto;">
-<table class="field_text" align="center" width="100%" cellpadding=3 cellspacing=0 border=0>
- <tr><td align=right colspan=2> </td></tr>
- <tr><td align=right>Bind Port:</td>
- <td> <input type='text' size=4 id='bindport' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Bind Address:</td>
- <td> <input type='text' size=14 id='bindaddr' class="input8"></td>
- </tr>
-
- <tr><td align=right>IAX1 Compatibility:</td>
- <td><input type='checkbox' id='iaxcompat'></td>
- </tr>
-
- <tr><td align=right>No Checksums:</td>
- <td><input type='checkbox' id='nochecksums'></td>
- </tr>
-
- <tr><td align=right>Delay Reject:</td>
- <td><input type='checkbox' id='delayreject'></td>
- </tr>
-
+ <table class="field_text" align="center" width="100%" cellpadding=3 cellspacing=0 border=0>
+ <tr> <td align=right colspan=2> </td> </tr>
+ <tr> <td align=right>Bind Port:</td>
+ <td> <input type='text' size=4 id='bindport' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Bind Address:</td>
+ <td> <input type='text' size=14 id='bindaddr' class="input8"></td>
+ </tr>
+ <tr> <td align=right>IAX1 Compatibility:</td>
+ <td><input type='checkbox' id='iaxcompat'></td>
+ </tr>
+ <tr> <td align=right>No Checksums:</td>
+ <td><input type='checkbox' id='nochecksums'></td>
+ </tr>
+ <tr> <td align=right>Delay Reject:</td>
+ <td><input type='checkbox' id='delayreject'></td>
+ </tr>
+ <tr> <td align=right>ADSI:</td>
+ <td><input type='checkbox' id='adsi'></td>
+ </tr>
+ <tr> <td colspan=2><B>Call Detail Records</B></td> </tr>
+ <tr> <td align=right>AMA Flags:</td>
+ <td> <input type='text' size=14 id='amaflags' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Accountcode:</td>
+ <td> <input type='text' size=14 id='accountcode' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Music On Hold Interpret:</td>
+ <td> <input type='text' size=14 id='mohinterpret' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Music On Hold Suggest:</td>
+ <td> <input type='text' size=14 id='mohsuggest' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Language:</td>
+ <td> <input type='text' size=3 dfalt='en' id='language' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Bandwidth:</td>
+ <td> <select id="bandwidth" class="input8">
+ <option value="low">low</option>
+ <option value="medium">medium</option>
+ <option value="high">high</option>
+ </select>
+ </td>
+ </tr>
- <tr><td align=right>ADSI:</td>
- <td><input type='checkbox' id='adsi'></td>
- </tr>
-
- <tr><td colspan=2><B>Call Detail Records</B></td></tr>
- <tr><td align=right>AMA Flags:</td>
- <td> <input type='text' size=14 id='amaflags' class="input8"></td>
- </tr>
-
- <tr><td align=right>Accountcode:</td>
- <td> <input type='text' size=14 id='accountcode' class="input8"></td>
- </tr>
-
- <tr><td align=right>Music On Hold Interpret:</td>
- <td> <input type='text' size=14 id='mohinterpret' class="input8"></td>
- </tr>
-
- <tr><td align=right>Music On Hold Suggest:</td>
- <td> <input type='text' size=14 id='mohsuggest' class="input8"></td>
- </tr>
-
- <tr><td align=right>Language:</td>
- <td> <input type='text' size=3 dfalt='en' id='language' class="input8"></td>
- </tr>
-
- <tr><td align=right>Bandwidth:</td>
- <td> <select id="bandwidth" class="input8">
- <option value="low">low</option>
- <option value="medium">medium</option>
- <option value="high">high</option>
- </select>
- </td>
- </tr>
-
- <tr><td colspan=2><B>Jitter Buffer</B></td></tr>
-
- <tr><td align=right>Enable Jitter Buffer:</td>
- <td><input type='checkbox' id='jitterbuffer'></td>
- </tr>
-
- <tr><td align=right>Force Jitter Buffer:</td>
- <td><input type='checkbox' id='forcejitterbuffer'></td>
- </tr>
-
- <tr><td align=right>Drop Count:</td>
- <td> <input type='text' size=4 id='dropcount' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Max Jitter Buffer:</td>
- <td> <input type='text' size=4 id='maxjitterbuffer' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Max Interpolation Frames:</td>
- <td> <input type='text' size=4 id='maxjitterinterps' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Resync Threshold:</td>
- <td> <input type='text' size=4 id='resyncthreshold' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Max Excess Buffer:</td>
- <td> <input type='text' size=4 id='maxexcessbuffer' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Min Excess Buffer:</td>
- <td> <input type='text' size=4 id='minexcessbuffer' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Jitter Shrink Rate:</td>
- <td> <input type='text' size=4 id='jittershrinkrate' pattern='^\d*$' class="input8"></td>
- </tr>
-
-
+ <tr> <td colspan=2><B>Jitter Buffer</B></td></tr>
+
+ <tr> <td align=right>Enable Jitter Buffer:</td>
+ <td><input type='checkbox' id='jitterbuffer'></td>
+ </tr>
+
+ <tr> <td align=right>Force Jitter Buffer:</td>
+ <td><input type='checkbox' id='forcejitterbuffer'></td>
+ </tr>
+ <tr> <td align=right>Drop Count:</td>
+ <td> <input type='text' size=4 id='dropcount' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Max Jitter Buffer:</td>
+ <td> <input type='text' size=4 id='maxjitterbuffer' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Max Interpolation Frames:</td>
+ <td> <input type='text' size=4 id='maxjitterinterps' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Resync Threshold:</td>
+ <td> <input type='text' size=4 id='resyncthreshold' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Max Excess Buffer:</td>
+ <td> <input type='text' size=4 id='maxexcessbuffer' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Min Excess Buffer:</td>
+ <td> <input type='text' size=4 id='minexcessbuffer' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Jitter Shrink Rate:</td>
+ <td> <input type='text' size=4 id='jittershrinkrate' pattern='^\d*$' class="input8"></td>
+ </tr>
<!-- Done with Jitter Buffer -->
- <tr><td colspan=2><B>IAX Trunking Options</B></td></tr>
- <tr><td align=right>Trunk Freq:</td>
- <td> <input type='text' size=4 id='trunkfreq' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Trunk Time Stamps:</td>
- <td><input type='checkbox' id='trunktimestamps'></td>
- </tr>
-
-
- <tr><td colspan=2><B>IAX Registration Options</B></td></tr>
- <tr><td align=right>Min Reg Expire:</td>
- <td> <input type='text' size=4 id='minregexpire' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Max Reg Expire:</td>
- <td> <input type='text' size=4 id='maxregexpire' pattern='^\d*$' class="input8"></td>
- </tr>
-
-
- <tr><td align=right>IAX ThreadCount:</td>
- <td> <input type='text' size=4 id='iaxthreadcount' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>IAX Max ThreadCount:</td>
- <td> <input type='text' size=4 id='iaxmaxthreadcount' pattern='^\d*$' class="input8"></td>
- </tr>
-
- <tr><td align=right>Register:</td>
- <td> <input type='text' size=12 id='register' class="input8"></td>
- </tr>
-
- <tr><td align=right>Reg Context:</td>
- <td> <input type='text' size=12 id='regcontext' class="input8"></td>
- </tr>
-
- <tr><td align=right>Auto Kill:</td>
- <td> <input size=3 type='text' id='autokill' class="input8"></td>
- </tr>
-
- <tr><td align=right><NOBR>Authentication Debugging:</NOBR></td>
- <td><input type='checkbox' id='authdebug'></td>
- </tr>
-
- <tr><td align=right>Codec Priority:</td>
- <td> <select id="codecpriority" class="input8">
- <option value="caller">caller</option>
- <option value="host">host</option>
- <option value="disabled">disabled</option>
- <option value="reqonly">reqonly</option>
- </select>
- </td>
- </tr>
-
- <tr><td align=right>Type of Service:</td>
- <td> <select size=1 id="tos" class="input8">
- <option value='ef'>ef</option>
- <option value='CS0'>CS0</option>
- <option value='CS1'>CS1</option>
- <option value='CS2'>CS2</option>
- <option value='CS3'>CS3</option>
- <option value='CS4'>CS4</option>
- <option value='CS5'>CS5</option>
- <option value='CS6'>CS6</option>
- <option value='CS7'>CS7</option>
- <option value='AF11'>AF11</option>
- <option value='AF12'>AF12</option>
- <option value='AF13'>AF13</option>
- <option value='AF21'>AF21</option>
- <option value='AF22'>AF22</option>
- <option value='AF23'>AF23</option>
- <option value='AF31'>AF31</option>
- <option value='AF32'>AF32</option>
- <option value='AF33'>AF33</option>
- <option value='AF41'>AF41</option>
- <option value='AF42'>AF42</option>
- <option value='AF43'>AF43</option>
- </select>
- </td>
- </tr>
-
- <tr><td colspan=2><B>Realtime IAX Options</B></td></tr>
- <tr><td align=right>Cache Friends:</td>
- <td><input type='checkbox' id='rtcachefriends'></td>
- </tr>
-
- <tr><td align=right>Send Registry Updates:</td>
- <td><input type='checkbox' id='rtupdate'></td>
- </tr>
-
- <tr><td align=right>Auto-Expire Friends:</td>
- <td><input type='checkbox' id='rtautoclear'></td>
- </tr>
-
- <tr><td align=right>Ignore Expired Peers:</td>
- <td><input type='checkbox' id='rtignoreexpire'></td>
- </tr>
-
- <tr ><td colspan=2><B> Codecs</B></td></tr>
- <tr ><td align=right>Disallowed Codecs:</td>
- <td> <input type='text' id='disallow' class="input8" size=9></td>
- </tr>
- <tr ><td align=right>Allowed Codecs:</td>
- <td> <input type='text' id='allow' class="input8" size=9><input type=button id="sd" value="Edit" onclick="update_div_setordercodecs()">
- </td>
- </tr>
- </table>
- </div>
+ <tr> <td colspan=2><B>IAX Trunking Options</B></td></tr>
+ <tr> <td align=right>Trunk Freq:</td>
+ <td> <input type='text' size=4 id='trunkfreq' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Trunk Time Stamps:</td>
+ <td><input type='checkbox' id='trunktimestamps'></td>
+ </tr>
+ <tr> <td colspan=2><B>IAX Registration Options</B></td></tr>
+ <tr> <td align=right>Min Reg Expire:</td>
+ <td> <input type='text' size=4 id='minregexpire' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Max Reg Expire:</td>
+ <td> <input type='text' size=4 id='maxregexpire' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>IAX ThreadCount:</td>
+ <td> <input type='text' size=4 id='iaxthreadcount' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>IAX Max ThreadCount:</td>
+ <td> <input type='text' size=4 id='iaxmaxthreadcount' pattern='^\d*$' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Register:</td>
+ <td> <input type='text' size=12 id='register' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Reg Context:</td>
+ <td> <input type='text' size=12 id='regcontext' class="input8"></td>
+ </tr>
+ <tr> <td align=right>Auto Kill:</td>
+ <td> <input size=3 type='text' id='autokill' class="input8"></td>
+ </tr>
+
+ <tr> <td align=right><NOBR>Authentication Debugging:</NOBR></td>
+ <td><input type='checkbox' id='authdebug'></td>
+ </tr>
+ <tr> <td align=right>Codec Priority:</td>
+ <td> <select id="codecpriority" class="input8">
+ <option value="caller">caller</option>
+ <option value="host">host</option>
+ <option value="disabled">disabled</option>
+ <option value="reqonly">reqonly</option>
+ </select>
+ </td>
+ </tr>
+ <tr> <td align=right>Type of Service:</td>
+ <td> <select size=1 id="tos" class="input8">
+ <option value='ef'>ef</option>
+ <option value='CS0'>CS0</option>
+ <option value='CS1'>CS1</option>
+ <option value='CS2'>CS2</option>
+ <option value='CS3'>CS3</option>
+ <option value='CS4'>CS4</option>
+ <option value='CS5'>CS5</option>
+ <option value='CS6'>CS6</option>
+ <option value='CS7'>CS7</option>
+ <option value='AF11'>AF11</option>
+ <option value='AF12'>AF12</option>
+ <option value='AF13'>AF13</option>
+ <option value='AF21'>AF21</option>
+ <option value='AF22'>AF22</option>
+ <option value='AF23'>AF23</option>
+ <option value='AF31'>AF31</option>
+ <option value='AF32'>AF32</option>
+ <option value='AF33'>AF33</option>
+ <option value='AF41'>AF41</option>
+ <option value='AF42'>AF42</option>
+ <option value='AF43'>AF43</option>
+ </select>
+ </td>
+ </tr>
+ <tr> <td colspan=2><B>Realtime IAX Options</B></td></tr>
+ <tr> <td align=right>Cache Friends:</td>
+ <td><input type='checkbox' id='rtcachefriends'></td>
+ </tr>
+ <tr> <td align=right>Send Registry Updates:</td>
+ <td><input type='checkbox' id='rtupdate'></td>
+ </tr>
+ <tr> <td align=right>Auto-Expire Friends:</td>
+ <td><input type='checkbox' id='rtautoclear'></td>
+ </tr>
+ <tr> <td align=right>Ignore Expired Peers:</td>
+ <td><input type='checkbox' id='rtignoreexpire'></td>
+ </tr>
+ <tr> <td colspan=2><B> Codecs</B></td></tr>
+ <tr> <td align=right>Disallowed Codecs:</td>
+ <td> <input type='text' id='disallow' class="input8" size=9></td>
+ </tr>
+ <tr> <td align=right>Allowed Codecs:</td>
+ <td> <input type='text' id='allow' class="input8" size=9><input type=button id="sd" value="Edit" onclick="update_div_setordercodecs()"></td>
+ </tr>
+ </table>
+</div>
<HR>
<table align="center" cellpadding=0 cellspacing=0 border=0>
- <tr><td colspan=2 align=center height=20><div id='status'></div></td></tr>
- <tr><td colspan=2 align=center><input type='button' id='save' value='Save' class="buttonbold"> <input type='button' id='cancel' value='Cancel' class="buttonbold"></td></tr>
+ <tr><td colspan=2 align=center height=20><div id='status'></div></td></tr>
+ <tr><td colspan=2 align=center>
+ <input type='button' id='save' value='Save' class="buttonbold">
+ <input type='button' id='cancel' value='Cancel' class="buttonbold">
+ </td>
+ </tr>
</table>
</div>
<div style='visibility:hidden;overflow:hidden;width:0px;height:0px'><select size="5" id="hiddenfield" style="width:220px"></select></div>
<div id="div_setordercodecs" style="position:absolute; display:none; left: 120; top: 70; width:350; background-color:#F4EFE5; border-width: 1px; border-color: #7E5538; border-style: solid; z-index:5">
<table width="100%" cellpadding=0 cellspacing=0 onmousedown="startDrag(event , 'div_setordercodecs');">
<TR bgcolor="#7E5538" style="background-image:url('images/title_gradient.gif');">
- <TD Height="20" align="center" style="cursor: move"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">Codec Preferences</font></TD>
- <TD Height="20" align="right" style="cursor: move"><A href="#" onclick="cancel_ordercodecs();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A></TD>
- <TD width=4></TD>
+ <TD Height="20" align="center" style="cursor: move"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">Codec Preferences</font></TD>
+ <TD Height="20" align="right" style="cursor: move"><A href="#" onclick="cancel_ordercodecs();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A></TD>
+ <TD width=4></TD>
</TR>
</table>
-<table align=center>
- <tr><td><BR></td></tr>
- <tr><td class="field_text">Allowed</td>
+ <table align=center>
+ <tr> <td><BR></td> </tr>
+ <tr> <td class="field_text">Allowed</td>
<td></td>
<td class="field_text">Disallowed</td>
</tr>
<tr><td><select id="allowed" size=9 class="input8"></select></td>
- <td><input type="button" id="select_codec" value="<" onclick="enable_selectedcodec()"><BR><input type="button" id="deselect_codec" value=">" onclick="disable_selectedcodec()"></td>
- <td><select id="disallowed" size=9 class="input8"></select></td>
+ <td> <input type="button" id="select_codec" value="<" onclick="enable_selectedcodec()">
+ <BR><input type="button" id="deselect_codec" value=">" onclick="disable_selectedcodec()"></td>
+ <td> <select id="disallowed" size=9 class="input8"></select></td>
</tr>
<tr><td></td>
<td></td>
@@ -420,7 +385,7 @@
</td>
</tr>
<tr><td><BR></td></tr>
-</table>
+ </table>
</div>
<div id="bg_transparent" STYLE="display:none; position: absolute; left: 0; top: 24; width:100%; height:100%; background-color:#EFEFEF; -moz-opacity:.50;opacity:.50; border-width: 1px; border-color: #EFEFEF; border-style: solid; z-index:3">
</div>
Modified: trunk/config/incoming.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/incoming.html?view=diff&rev=456&r1=455&r2=456
==============================================================================
--- trunk/config/incoming.html (original)
+++ trunk/config/incoming.html Tue Mar 20 19:59:49 2007
@@ -60,7 +60,7 @@
var p = format_extension( _$('extensions'), t, x) ;
if ( p != null ){ listOfExtensions.push(p); }
}
- if ( ( t.name.substring(0,asterisk_guiTDPrefix.length) == asterisk_guiTDPrefix ) && x == undefined){
+ if ( ( t.name.substring(0,asterisk_guiTDPrefix.length) == asterisk_guiTDPrefix ) && x == undefined ){
if(typeof didtrunks[t.name] == "undefined"){
didtrunks[t.name] = new Object();
didtrunks[t.name].trunkname = t.name;
@@ -276,21 +276,21 @@
// create an entry under the selected trunk
// $('incomingrule') == "allunmatched" or "frompattern" , $('frompattern'), $('fromprovider'), $('toextension')
if (ir == "allunmatched" ){
- var newpattern = "_X." ;
- var temp_provider = fpv.value;
- var temp_priority = "1";
- var temp_action = "Goto(default|" + te.value + "|1)";
- var new_exten = newpattern + "," + temp_priority + "," + temp_action;
- var new_exten2 = "s,1," + temp_action;
- var uri = build_action('append', 0, temp_provider ,"exten", new_exten);
- uri += build_action('append', 1, temp_provider ,"exten", new_exten2);
+ var newpattern = "_X." ;
+ var temp_provider = fpv.value;
+ var temp_priority = "1";
+ var temp_action = "Goto(default|" + te.value + "|1)";
+ var new_exten = newpattern + "," + temp_priority + "," + temp_action;
+ var new_exten2 = "s,1," + temp_action;
+ var uri = build_action('append', 0, temp_provider ,"exten", new_exten);
+ uri += build_action('append', 1, temp_provider ,"exten", new_exten2);
}else{
- var newpattern = fp.value ;
- var temp_provider = fpv.value ;
- var temp_action = "Goto(default|" + te.value + "|1)";
- var temp_priority = "1";
- var new_exten = newpattern + "," + temp_priority + "," + temp_action;
- var uri = build_action('append', 0, temp_provider ,"exten", new_exten );
+ var newpattern = fp.value ;
+ var temp_provider = fpv.value ;
+ var temp_action = "Goto(default|" + te.value + "|1)";
+ var temp_priority = "1";
+ var new_exten = newpattern + "," + temp_priority + "," + temp_action;
+ var uri = build_action('append', 0, temp_provider ,"exten", new_exten );
}
// check whether there is an existing entry with this pattern
@@ -326,7 +326,7 @@
function update_incomingrule(){
// field validation
var ir = _$('incomingrule').value ;
- var fp = _$('frompattern') ;
+ var fp = _$('frompattern') ;
var te = _$('toextension') ;
if( ir == "frompattern" && fp.value == "" ){
@@ -395,7 +395,6 @@
}
-
function checksave(k){
var ir = _$('incomingrule').value ;
var fpv = _$('fromprovider').value ;
@@ -420,8 +419,6 @@
function enablesave(){
_$('save_a').disabled = false;
}
-
-
function delete_incomingrule(a,b,c,d){ // a is pattern, b is DID_trunk, c is action, d is priority
@@ -450,7 +447,6 @@
}
-
function localajaxinit() {
showdiv_statusmessage();
setWindowTitle("Incoming Calls");
@@ -464,9 +460,9 @@
function free_mem( ){
if( navigator.userAgent.indexOf("MSIE") == -1 ){ return true; }
- try{
- purge( document.body );
- }catch(e){ }
+ try{
+ purge( document.body );
+ }catch(e){ }
}
</script>
<body id="foo" onload="localajaxinit()" bgcolor="EFEFEF" onunload="free_mem()">
@@ -475,55 +471,58 @@
<span style="cursor: pointer; cursor: hand;" onclick="window.location.href=window.location.href;" > <img src="images/refresh.png" title=" Refresh " border=0 > </span>
</div>
<div class="mainscreenContentBox" id="mailboxcontent">
- <select id="extensions" style="display:none"></select>
- <select id="users" style="display:none"></select>
- <BR>
- <CENTER><font size="+1">Incoming Call Rules</font></CENTER>
- <table class="table_blacksm" cellpadding=2 cellspacing=2 border=0 align=center width=500 id="table_one">
- <tr> <td width=35>S.No</td>
- <td> Incoming Rule </td>
- <td width=75 align=center>Options</td>
- </tr>
- </table>
- <div id="callingRulesTable_div" style="height:250px;width=100%; overflow :auto; padding : 0px 0px 0px 0px;">
- <table id="callingRulesTable" cellpadding=2 cellspacing=1 border=0 align=center width=500></table>
- </div>
- </font>
-
- <center><div style="height:25px;color: #FF0000;" id='status' class="field_text9"></div></center>
- <BR>
- <center><input type="button" id="adddid" value="Add a Incoming Rule" onclick="add_incomingrule();" onmouseover="show_tooltip('en', 'incoming',0);"></center>
-
- <div id="userscontent" STYLE="display:none; position: absolute; left: 20; top: 40; width:475; height:190; background-color:#F4EFE5; border-width: 1px; border-color: #7E5538; border-style: solid;z-index:5">
- <table width="100%" cellpadding=0 cellspacing=0 onmousedown="startDrag(event , 'userscontent');">
- <TR bgcolor="#7E5538" style="background-image:url('images/title_gradient.gif');"><TD Height="20" align="right" style="cursor: move">
- <A href="#" onclick="$('cancel_a').click();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A>
- </TD>
- <TD width=4></TD>
- </TR>
- </table>
- <TABLE align=center cellpadding=2 cellspacing=2 border=0 width="100%">
- <TR><TD height=10></TD></TR>
- <TR><TD align=center> <NOBR>Route <select id="incomingrule" onclick="checksave(this)" class="input9">
- <option value="allunmatched">All Unmatched incoming calls</option>
- <option value="frompattern">incoming calls that match </option>
- </select>
- <span id="thatmatch" onmouseover="show_tooltip('en', 'incoming', 1);">pattern <input type="text" id="frompattern" size=12 onchange="enablesave();" onkeyup="enablesave();" class="input9"></span>
- </NOBR>
- </TD>
- </TR>
- <TR><TD align=center>from provider <select id="fromprovider" onclick="checksave(this)" class="input9"></select></TD></TR>
- <TR>
- <TD align=center>to extension <select id="toextension" onchange="enablesave();" onkeyup="enablesave();" class="input9"></select></TD>
- </TR>
- <TR>
- <TD align=center height=50 valign=middle>
- <input type="button" id="save_a" value="Save" onclick="save_incomingrule();">
- <input type="button" id="cancel_a" value="Cancel" onclick="$('userscontent').style.display='none'; $('bg_transparent').style.display ='none';" >
- </TD>
- </TR>
- </TABLE>
- </div>
+ <select id="extensions" style="display:none"></select>
+ <select id="users" style="display:none"></select>
+ <BR>
+ <CENTER><font size="+1">Incoming Call Rules</font></CENTER>
+ <table class="table_blacksm" cellpadding=2 cellspacing=2 border=0 align=center width=500 id="table_one">
+ <tr> <td width=35>S.No</td>
[... 8101 lines stripped ...]
More information about the asterisk-gui-commits
mailing list