pari: trunk r137 - /trunk/config/
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Thu Nov 30 17:36:33 MST 2006
Author: pari
Date: Thu Nov 30 18:36:32 2006
New Revision: 137
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=137
Log:
option to modify codec prefs in iax.cong and sip.conf
Modified:
trunk/config/cfgadvanced.html
trunk/config/cfgappliance.html
trunk/config/cfgbasic.html
trunk/config/iax.html
trunk/config/jingle.html
trunk/config/options.html
trunk/config/sip.html
Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Thu Nov 30 18:36:32 2006
@@ -195,7 +195,7 @@
<body onload="javascript:registerajax()" topmargin=1>
<table border="0" align="center" cellspacing="0" cellpadding="0" bgcolor="#dddddd" width=950 height=570>
<tr height=47><td valign="bottom" align='right' bgcolor='white' height=47><img align='left' src="images/digiumlogo.gif" align="left"></td>
- <td valign='bottom' align='right' bgcolor='white' colspan=2><a target='_extern' href="http://www.digium.com/astguibasic/about">About Digium</a> | <a target='_extern' href="http://www.digium.com/astguibasic/help">Help</a>
+ <td valign='bottom' align='right' bgcolor='white' colspan=2><a target='_extern' href="http://www.digium.com/en/company/profile/">About Digium</a> | <a href="#">Help</a>
<input type="hidden" id="login_name">
</td>
</tr>
@@ -232,7 +232,7 @@
</td>
</tr>
<tr><td colspan="3" align=center height=18>
- <div id="status" class="statusbar">Copyright ©2006 Digium, Inc. Digium® and Asterisk® are registered <a href="http://www.digium.com/trademarks">trademarks</a> of Digium, Inc. All Rights Reserved. <i><a href="http://www.digium.com/gui_legal">Legal Information</a></i></div>
+ <div id="status" class="statusbar">Copyright ©2006 Digium, Inc. Digium® and Asterisk® are registered <a href="http://www.digium.com/en/company/profile/trademarkpolicy.php">trademarks</a> of Digium, Inc. All Rights Reserved. <i><a href="#">Legal Information</a></i></div>
</td>
</tr>
</table>
Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Thu Nov 30 18:36:32 2006
@@ -187,7 +187,7 @@
<body onload="javascript:registerajax()" topmargin=1>
<table border="0" align="center" cellspacing="0" cellpadding="0" bgcolor="#dddddd" width=950 height=570>
<tr height=47><td valign="bottom" align='right' bgcolor='white' height=47><img align='left' src="images/digiumlogo.gif" align="left"></td>
- <td valign='bottom' align='right' bgcolor='white' colspan=2><a target='_extern' href="http://www.digium.com/astguibasic/about">About Digium</a> | <a target='_extern' href="http://www.digium.com/astguibasic/help">Help</a>
+ <td valign='bottom' align='right' bgcolor='white' colspan=2><a target='_extern' href="http://www.digium.com/en/company/profile/">About Digium</a> | <a href="#">Help</a>
<input type="hidden" id="login_name">
</td>
</tr>
@@ -224,7 +224,7 @@
</td>
</tr>
<tr><td colspan="3" align=center height=18>
- <div id="status" class="statusbar">Copyright ©2006 Digium, Inc. Digium® and Asterisk® are registered <a href="http://www.digium.com/trademarks">trademarks</a> of Digium, Inc. All Rights Reserved. <i><a href="http://www.digium.com/gui_legal">Legal Information</a></i></div>
+ <div id="status" class="statusbar">Copyright ©2006 Digium, Inc. Digium® and Asterisk® are registered <a href="http://www.digium.com/en/company/profile/trademarkpolicy.php">trademarks</a> of Digium, Inc. All Rights Reserved. <i><a href="#">Legal Information</a></i></div>
</td>
</tr>
</table>
Modified: trunk/config/cfgbasic.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgbasic.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/cfgbasic.html (original)
+++ trunk/config/cfgbasic.html Thu Nov 30 18:36:32 2006
@@ -193,7 +193,7 @@
<table border="0" align="center" cellspacing="0" cellpadding="0" bgcolor="#dddddd" width=950 height=570>
<tr height=47><td valign="bottom" align='right' bgcolor='white' height=47><img align='left' src="images/digiumlogo.gif" align="left"></td>
<td valign='bottom' align='right' bgcolor='white' colspan=2>
- <a target='_extern' href="http://www.digium.com/astguibasic/about">About Digium</a> | <a target='_extern' href="http://www.digium.com/astguibasic/help">Help</a>
+ <a target='_extern' href="http://www.digium.com/en/company/profile/">About Digium</a> | <a href="#">Help</a>
<input type="hidden" id="login_name">
</td>
</tr>
@@ -230,7 +230,7 @@
</td>
</tr>
<tr><td colspan="3" align=center height=18>
- <div id="status" class="statusbar">Copyright ©2006 Digium, Inc. Digium® and Asterisk® are registered <a href="http://www.digium.com/trademarks">trademarks</a> of Digium, Inc. All Rights Reserved. <i><a href="http://www.digium.com/gui_legal">Legal Information</a></i></div>
+ <div id="status" class="statusbar">Copyright ©2006 Digium, Inc. Digium® and Asterisk® are registered <a href="http://www.digium.com/en/company/profile/trademarkpolicy.php">trademarks</a> of Digium, Inc. All Rights Reserved. <i><a href="#">Legal Information</a></i></div>
</td>
</tr>
</table>
Modified: trunk/config/iax.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/iax.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/iax.html (original)
+++ trunk/config/iax.html Thu Nov 30 18:36:32 2006
@@ -27,7 +27,7 @@
<script>
var phonecallbacks = new Object;
var widgets = new Array;
-var fieldnames = new Array('status', 'save', 'cancel', 'bindport', 'bindaddr', 'iaxcompat', 'nochecksums', 'delayreject', 'amaflags', 'adsi', 'accountcode', 'language', 'mohinterpret', 'mohsuggest', 'bandwidth','jitterbuffer', 'forcejitterbuffer', 'dropcount', 'maxjitterbuffer', 'maxjitterinterps', 'resyncthreshold', 'maxexcessbuffer', 'minexcessbuffer', 'jittershrinkrate', 'trunkfreq', 'trunktimestamps', 'minregexpire', 'maxregexpire', 'iaxthreadcount', 'iaxmaxthreadcount' , 'register', 'authdebug', 'tos', 'regcontext', 'autokill', 'codecpriority', 'rtcachefriends', 'rtupdate', 'rtautoclear', 'rtignoreexpire');
+var fieldnames = new Array('status', 'save', 'cancel', 'bindport', 'bindaddr', 'iaxcompat', 'nochecksums', 'delayreject', 'amaflags', 'adsi', 'accountcode', 'language', 'mohinterpret', 'mohsuggest', 'bandwidth','jitterbuffer', 'forcejitterbuffer', 'dropcount', 'maxjitterbuffer', 'maxjitterinterps', 'resyncthreshold', 'maxexcessbuffer', 'minexcessbuffer', 'jittershrinkrate', 'trunkfreq', 'trunktimestamps', 'minregexpire', 'maxregexpire', 'iaxthreadcount', 'iaxmaxthreadcount' , 'register', 'authdebug', 'tos', 'regcontext', 'autokill', 'codecpriority', 'rtcachefriends', 'rtupdate', 'rtautoclear', 'rtignoreexpire','allow','disallow');
phonecallbacks.format = function(t) {
@@ -60,6 +60,103 @@
return;
}
+// Allowed/Disallowed codescs related functions
+function enable_selectedcodec(){
+ // add to allowed
+ selectbox_add("allowed" , $('disallowed').value );
+ // remove selected from disallowed
+ selectbox_remove("disallowed", $('disallowed').value );
+}
+function disable_selectedcodec(){
+ // add to disallowed
+ selectbox_add("disallowed" , $('allowed').value );
+ // remove selected from allowed
+ selectbox_remove("allowed", $('allowed').value );
+}
+function selectbox_add(selectbox_id, codec){
+ switch(codec) {
+ case 'ulaw': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="ulaw">u-law</option>'; break
+ case 'alaw': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="alaw">a-law</option>'; break
+ case 'gsm': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="gsm">GSM</option>'; break
+ case 'ilbc': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="ilbc">ILBC</option>'; break
+ case 'speex': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="speex">SPEEX</option>'; break
+ case 'g726': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="g726">G.726</option>'; break
+ case 'adpcm': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="adpcm">ADPCM</option>'; break
+ case 'lpc10': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="lpc10">LPC10</option>'; break
+ case 'g729': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="g729">G.729a</option>'; break
+ default: break
+ }
+}
+function selectbox_remove(selectbox_id,codec){
+ for (var x=0; x < $(selectbox_id).length; x++){
+ if( $(selectbox_id).options[x].value==codec ){ $(selectbox_id).remove(x); return true; }
+ }
+}
+function update_ordercodecs(){
+ $('disallow').value = "";
+ $('allow').value = "";
+ if($('disallow_all').checked){
+ $('disallow').value = "all";
+ }else{
+ for (var x=0; x < $('disallowed').length ; x++){
+ if(x==0){
+ $('disallow').value = $('disallowed').options[x].value ;
+ }else{
+ $('disallow').value = $('disallow').value + "," + $('disallowed').options[x].value ;
+ }
+ }
+ }
+
+ for (var x=0; x < $('allowed').length ; x++){
+ if(x==0){
+ $('allow').value = $('allowed').options[x].value ;
+ }else{
+ $('allow').value = $('allow').value + "," + $('allowed').options[x].value ;
+ }
+ }
+ $('div_setordercodecs').style.display = "none";
+ for (var x =0; x < fieldnames.length; x++) {
+ widgets[fieldnames[x]].disabled = false;
+ }
+}
+function cancel_ordercodecs(){
+ for (var x =0; x < fieldnames.length; x++) {
+ widgets[fieldnames[x]].disabled = false;
+ }
+ $('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]);
+ }
+ }
+ var tmp = $('allow').value.split(",");
+ for(var x=0; x < tmp.length; x++){
+ selectbox_add("allowed", tmp[x]);
+ selectbox_remove("disallowed",tmp[x]);
+ }
+
+ for (var x =0; x < fieldnames.length; x++) {
+ widgets[fieldnames[x]].disabled = true;
+ }
+
+ $('div_setordercodecs').style.display='block';
+}
+// End of Allowed/Disallowed codescs related functions
</script>
<body id="foo" onload="localajaxinit()" bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
@@ -264,6 +361,41 @@
<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()">
+ <div style="position:absolute; display:none; left: 160; top: 210; width:350; background-color:#F4EFE5; border-width: 1px; border-color: #7E5538; border-style: solid;" id="div_setordercodecs">
+ <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>
+ </tr>
+ <tr><td></td>
+ <td></td>
+ <td class="field_text"><input type=checkbox id="disallow_all">Disallow All</td>
+ </tr>
+ <tr><td colspan=3 align=Center>
+ <input type="button" class="buttonbold" id="setordercodecs" value="update" onclick="update_ordercodecs()">
+ <input type="button" class="buttonbold" id="cancel_setorder" value="Cancel" onclick="cancel_ordercodecs()">
+ </td>
+ </tr>
+ <tr><td><BR></td></tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+
+
</table>
</div>
<HR>
Modified: trunk/config/jingle.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/jingle.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/jingle.html (original)
+++ trunk/config/jingle.html Thu Nov 30 18:36:32 2006
@@ -125,7 +125,7 @@
function update_div_setordercodecs(){
if($('JingleUsers').selectedIndex ==-1){ return true;}
$('disallowed').innerHTML=""; $('allowed').innerHTML="";
- if( $('disallow').value == "all"){
+ if( $('disallow').value == "all" || $('disallow').value == ""){
$('disallow_all').checked = true;
selectbox_add("disallowed", "ulaw");
selectbox_add("disallowed", "alaw");
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Thu Nov 30 18:36:32 2006
@@ -132,13 +132,13 @@
function changepassword(){
if( $('newpass').value!=$('newpass_rep').value ){
- alert( "Passwords donot match !") ;
+ alert( "Passwords do not match !") ;
$('newpass').focus();
return true;
}
if( $('newpass').value.length < 4 ){
- alert( "Password should be atleast 4 characters !") ;
+ alert( "Password should be at least 4 characters !") ;
$('newpass').focus();
return true;
}
@@ -163,13 +163,13 @@
function compare_passwords(){
if( $('newpass').value.length < 4 ){
$('dopwdsmatch').style.color = "#EE0000";
- $('dopwdsmatch').innerHTML = "Password should be atleast 4 characters !" ;
+ $('dopwdsmatch').innerHTML = "Password should be at least 4 characters !" ;
}else if ( $('newpass').value==$('newpass_rep').value){
$('dopwdsmatch').style.color = "#005D2E";
$('dopwdsmatch').innerHTML = "Passwords Match !" ;
}else{
$('dopwdsmatch').style.color = "#EE0000";
- $('dopwdsmatch').innerHTML = "Passwords donot match !" ;
+ $('dopwdsmatch').innerHTML = "Passwords do not match !" ;
}
}
Modified: trunk/config/sip.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/sip.html?view=diff&rev=137&r1=136&r2=137
==============================================================================
--- trunk/config/sip.html (original)
+++ trunk/config/sip.html Thu Nov 30 18:36:32 2006
@@ -7,7 +7,7 @@
<script>
var phonecallbacks = new Object;
var widgets = new Array;
-var fieldnames = new Array('status', 'save', 'cancel', 'context', 'allowguest' , 'allowoverlap' , 'allowtransfer', 'realm', 'bindport', 'bindaddr', 'srvlookup', 'domain', 'pedantic', 'tos_sip', 'tos_audio', 'tos_video', 'maxexpiry', 'minexpiry', 'defaultexpiry', 't1min', 'notifymimetype', 'checkmwi', 'mohinterpret', 'mohsuggest', 'language', 'relaxdtmf', 'rtptimeout', 'rtpholdtimeout', 'trustrpid' , 'sendrpid', 'progressinband', 'useragent', 'promiscredir', 'usereqphone', 'dtmfmode', 'compactheaders', 'videosupport', 'maxcallbitrate', 'callevents', 'alwaysauthreject', 'g726nonstandard', 'sipdebug', 'recordhistory', 'dumphistory', 'allowsubscribe', 'subscribecontext', 'notifyringing', 't38pt_udptl', 'register', 'registertimeout', 'registerattempts', 'externip', 'externhost', 'externrefresh', 'localnet', 'nat', 'canreinvite', 'rtcachefriends', 'rtsavesysname', 'rtupdate', 'rtautoclear', 'ignoreregexpire', 'domain', 'autodomain', 'allowexternaldomains', 'allowexternalinvites','
fromdomain', 'jbenable', 'jbforce', 'jbmaxsize', 'jbresyncthreshold', 'jbimpl','jblog');
+var fieldnames = new Array('status', 'save', 'cancel', 'context', 'allowguest' , 'allowoverlap' , 'allowtransfer', 'realm', 'bindport', 'bindaddr', 'srvlookup', 'domain', 'pedantic', 'tos_sip', 'tos_audio', 'tos_video', 'maxexpiry', 'minexpiry', 'defaultexpiry', 't1min', 'notifymimetype', 'checkmwi', 'mohinterpret', 'mohsuggest', 'language', 'relaxdtmf', 'rtptimeout', 'rtpholdtimeout', 'trustrpid' , 'sendrpid', 'progressinband', 'useragent', 'promiscredir', 'usereqphone', 'dtmfmode', 'compactheaders', 'videosupport', 'maxcallbitrate', 'callevents', 'alwaysauthreject', 'g726nonstandard', 'sipdebug', 'recordhistory', 'dumphistory', 'allowsubscribe', 'subscribecontext', 'notifyringing', 't38pt_udptl', 'register', 'registertimeout', 'registerattempts', 'externip', 'externhost', 'externrefresh', 'localnet', 'nat', 'canreinvite', 'rtcachefriends', 'rtsavesysname', 'rtupdate', 'rtautoclear', 'ignoreregexpire', 'domain', 'autodomain', 'allowexternaldomains', 'allowexternalinvites','
fromdomain', 'jbenable', 'jbforce', 'jbmaxsize', 'jbresyncthreshold', 'jbimpl','jblog','disallow','allow');
phonecallbacks.format = function(t) {
// t.name, t.fieldbyname['context']
@@ -34,6 +34,104 @@
}
parent.astmanEngine.config2list("sip.conf", $('hiddenfield'), widgets, phonecallbacks);
}
+
+// Allowed/Disallowed codescs related functions
+function enable_selectedcodec(){
+ // add to allowed
+ selectbox_add("allowed" , $('disallowed').value );
+ // remove selected from disallowed
+ selectbox_remove("disallowed", $('disallowed').value );
+}
+function disable_selectedcodec(){
+ // add to disallowed
+ selectbox_add("disallowed" , $('allowed').value );
+ // remove selected from allowed
+ selectbox_remove("allowed", $('allowed').value );
+}
+function selectbox_add(selectbox_id, codec){
+ switch(codec) {
+ case 'ulaw': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="ulaw">u-law</option>'; break
+ case 'alaw': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="alaw">a-law</option>'; break
+ case 'gsm': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="gsm">GSM</option>'; break
+ case 'ilbc': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="ilbc">ILBC</option>'; break
+ case 'speex': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="speex">SPEEX</option>'; break
+ case 'g726': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="g726">G.726</option>'; break
+ case 'adpcm': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="adpcm">ADPCM</option>'; break
+ case 'lpc10': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="lpc10">LPC10</option>'; break
+ case 'g729': $(selectbox_id).innerHTML = $(selectbox_id).innerHTML + '<option value="g729">G.729a</option>'; break
+ default: break
+ }
+}
+function selectbox_remove(selectbox_id,codec){
+ for (var x=0; x < $(selectbox_id).length; x++){
+ if( $(selectbox_id).options[x].value==codec ){ $(selectbox_id).remove(x); return true; }
+ }
+}
+function update_ordercodecs(){
+ $('disallow').value = "";
+ $('allow').value = "";
+ if($('disallow_all').checked){
+ $('disallow').value = "all";
+ }else{
+ for (var x=0; x < $('disallowed').length ; x++){
+ if(x==0){
+ $('disallow').value = $('disallowed').options[x].value ;
+ }else{
+ $('disallow').value = $('disallow').value + "," + $('disallowed').options[x].value ;
+ }
+ }
+ }
+
+ for (var x=0; x < $('allowed').length ; x++){
+ if(x==0){
+ $('allow').value = $('allowed').options[x].value ;
+ }else{
+ $('allow').value = $('allow').value + "," + $('allowed').options[x].value ;
+ }
+ }
+ $('div_setordercodecs').style.display = "none";
+ for (var x =0; x < fieldnames.length; x++) {
+ widgets[fieldnames[x]].disabled = false;
+ }
+}
+function cancel_ordercodecs(){
+ for (var x =0; x < fieldnames.length; x++) {
+ widgets[fieldnames[x]].disabled = false;
+ }
+ $('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]);
+ }
+ }
+ var tmp = $('allow').value.split(",");
+ for(var x=0; x < tmp.length; x++){
+ selectbox_add("allowed", tmp[x]);
+ selectbox_remove("disallowed",tmp[x]);
+ }
+
+ for (var x =0; x < fieldnames.length; x++) {
+ widgets[fieldnames[x]].disabled = true;
+ }
+
+ $('div_setordercodecs').style.display='block';
+}
+// End of Allowed/Disallowed codescs related functions
</script>
<body id="foo" onload="localajaxinit()" bgcolor="EFEFEF">
<div class="mainscreenTitleBar">
@@ -391,6 +489,45 @@
</select>
</td>
</tr>
+
+
+
+
+<tr bgcolor="#FFFFFF" height=15><td colspan=2></td></tr>
+<tr bgcolor="#FFFFFF" ><td colspan=2><B> Codecs</B></td></tr>
+<tr bgcolor="#FFFFFF" ><td align=right>Disallowed Codecs:</td>
+ <td> <input type='text' id='disallow' class="input8" size=9></td>
+</tr>
+<tr bgcolor="#FFFFFF" ><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()">
+ <div style="position:absolute; display:none; left: 160; top: 210; width:350; background-color:#F4EFE5; border-width: 1px; border-color: #7E5538; border-style: solid;" id="div_setordercodecs">
+ <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>
+ </tr>
+ <tr><td></td>
+ <td></td>
+ <td class="field_text"><input type=checkbox id="disallow_all">Disallow All</td>
+ </tr>
+ <tr><td colspan=3 align=Center>
+ <input type="button" class="buttonbold" id="setordercodecs" value="update" onclick="update_ordercodecs()">
+ <input type="button" class="buttonbold" id="cancel_setorder" value="Cancel" onclick="cancel_ordercodecs()">
+ </td>
+ </tr>
+ <tr><td><BR></td></tr>
+ </table>
+ </div>
+ </td>
+</tr>
+
</table>
</div>
<HR>
More information about the asterisk-gui-commits
mailing list