pari: trunk r27 - /trunk/config/
asterisk-gui-commits at lists.digium.internal
asterisk-gui-commits at lists.digium.internal
Tue Sep 12 16:07:51 CDT 2006
Author: pari
Date: Tue Sep 12 16:07:51 2006
New Revision: 27
URL: http://svn.digium.com/view/asterisk-gui?rev=27&view=rev
Log:
iax/jabber/jingle - some fields may need to be changed - like from text to that of a select list etc.
Added:
trunk/config/iax.html
trunk/config/jabber.html
trunk/config/jingle.html
Modified:
trunk/config/options.html
Added: trunk/config/iax.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/iax.html?rev=27&view=auto
==============================================================================
--- trunk/config/iax.html (added)
+++ trunk/config/iax.html Tue Sep 12 16:07:51 2006
@@ -1,0 +1,256 @@
+<!--
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Configuration for "Users" generally
+ *
+ * Copyright (C) 1999 - 2006, Digium, Inc.
+ *
+ * Mark Spencer <markster at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ *
+-->
+<script src="scripts/prototype.js"></script>
+<script src="scripts/rico.js"></script>
+<script src="scripts/astman.js"></script>
+<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 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');
+
+
+phonecallbacks.format = function(t) {
+ tmp = t.name.split('general');
+ if(tmp.length>1)
+ return t.name;
+ else
+ return false;
+}
+
+
+phonecallbacks.postselect = function(box, val) {
+
+}
+
+
+
+phonecallbacks.loaded = function() {
+ $('hiddenfield').selectitem(0);
+}
+
+
+
+function localajaxinit(){
+ parent.loadscreen(this);
+ for (var x in fieldnames) {
+ widgets[fieldnames[x]] = $(fieldnames[x]);
+ widgets[fieldnames[x]].disabled = true;
+ }
+ parent.astmanEngine.config2list("iax.conf", $('hiddenfield'), widgets, phonecallbacks);
+ return;
+}
+
+</script>
+<body id="foo" onload="localajaxinit()">
+<div class="mainscreenTitleBar">
+ <span style="margin-left: 4px;font-weight:bold">IAX Configuration </span>
+</div>
+
+<div class="mainscreenContentBox" id="userscontent">
+<table class="mainscreenTable" align="center">
+<tr><td height=18></td></tr>
+<tr valign="top">
+<td>
+ <div style="height :385px;width=400px; overflow :auto;">
+ <table align="center" cellspacing=0 cellpadding=2 width=350>
+ <tr><td align=right>bindport:</td>
+ <td> <input type='text' size=4 id='bindport'></td>
+ </tr>
+
+ <tr><td align=right>bindaddr:</td>
+ <td> <input type='text' size=15 id='bindaddr'></td>
+ </tr>
+
+ <tr><td align=right>iaxcompat:</td>
+ <td><input type='checkbox' id='iaxcompat'></td>
+ </tr>
+
+ <tr><td align=right>nochecksums:</td>
+ <td><input type='checkbox' id='nochecksums'></td>
+ </tr>
+
+ <tr><td align=right>delayreject:</td>
+ <td><input type='checkbox' id='delayreject'></td>
+ </tr>
+
+ <tr><td align=right>amaflags:</td>
+ <td> <input type='text' size=15 id='amaflags'></td>
+ </tr>
+
+ <tr><td align=right>adsi:</td>
+ <td><input type='checkbox' id='adsi'></td>
+ </tr>
+
+ <tr><td align=right>accountcode:</td>
+ <td> <input type='text' size=15 id='accountcode'></td>
+ </tr>
+
+ <tr><td align=right>language:</td>
+ <td> <input type='text' size=3 id='language'></td>
+ </tr>
+
+ <tr><td align=right>mohinterpret:</td>
+ <td> <input type='text' size=15 id='mohinterpret'></td>
+ </tr>
+
+ <tr><td align=right>mohsuggest:</td>
+ <td> <input type='text' size=15 id='mohsuggest'></td>
+ </tr>
+
+ <tr><td align=right>bandwidth:</td>
+ <td>
+ <select id="bandwidth">
+ <option value="low">low</option>
+ <option value="medium">medium</option>
+ <option value="high">high</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr><td align=right>jitterbuffer:</td>
+ <td><input type='checkbox' id='jitterbuffer'></td>
+ </tr>
+
+ <tr><td align=right>forcejitterbuffer:</td>
+ <td><input type='checkbox' id='forcejitterbuffer'></td>
+ </tr>
+
+ <tr><td align=right>dropcount:</td>
+ <td> <input type='text' size=2 id='dropcount'></td>
+ </tr>
+
+ <tr><td align=right>maxjitterbuffer:</td>
+ <td> <input type='text' size=4 id='maxjitterbuffer'></td>
+ </tr>
+
+ <tr><td align=right>maxjitterinterps:</td>
+ <td> <input type='text' size=4 id='maxjitterinterps'></td>
+ </tr>
+
+ <tr><td align=right>resyncthreshold:</td>
+ <td> <input type='text' size=4 id='resyncthreshold'></td>
+ </tr>
+
+ <tr><td align=right>maxexcessbuffer:</td>
+ <td> <input type='text' size=4 id='maxexcessbuffer'></td>
+ </tr>
+
+ <tr><td align=right>minexcessbuffer:</td>
+ <td> <input type='text' size=4 id='minexcessbuffer'></td>
+ </tr>
+
+ <tr><td align=right>jittershrinkrate:</td>
+ <td> <input type='text' size=4 id='jittershrinkrate'></td>
+ </tr>
+
+ <tr><td align=right>trunkfreq:</td>
+ <td> <input type='text' size=4 id='trunkfreq'></td>
+ </tr>
+
+ <tr><td align=right>trunktimestamps:</td>
+ <td><input type='checkbox' id='trunktimestamps'></td>
+ </tr>
+
+ <tr><td align=right>minregexpire:</td>
+ <td> <input type='text' size=4 id='minregexpire'></td>
+ </tr>
+
+ <tr><td align=right>maxregexpire:</td>
+ <td> <input type='text' size=4 id='maxregexpire'></td>
+ </tr>
+
+ <tr><td align=right>iaxthreadcount:</td>
+ <td> <input type='text' size=4 id='iaxthreadcount'></td>
+ </tr>
+
+ <tr><td align=right>iaxmaxthreadcount:</td>
+ <td> <input type='text' size=4 id='iaxmaxthreadcount'></td>
+ </tr>
+
+ <tr><td align=right>register:</td>
+ <td> <input type='text' size=16 id='register'></td>
+ </tr>
+
+ <tr><td align=right>authdebug:</td>
+ <td><input type='checkbox' id='authdebug'></td>
+ </tr>
+
+ <tr><td align=right>tos:</td>
+ <td> <input type='text' size=3 id='tos'></td>
+ </tr>
+
+ <tr><td align=right>regcontext:</td>
+ <td> <input type='text' size=16 id='regcontext'></td>
+ </tr>
+
+ <tr><td align=right>autokill:</td>
+ <td><input type='checkbox' id='autokill'></td>
+ </tr>
+
+ <tr><td align=right>codecpriority:</td>
+ <td>
+ <select id="codecpriority">
+ <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>rtcachefriends:</td>
+ <td><input type='checkbox' id='rtcachefriends'></td>
+ </tr>
+
+ <tr><td align=right>rtupdate:</td>
+ <td><input type='checkbox' id='rtupdate'></td>
+ </tr>
+
+ <tr><td align=right>rtautoclear:</td>
+ <td><input type='checkbox' id='rtautoclear'></td>
+ </tr>
+
+ <tr><td align=right>rtignoreexpire:</td>
+ <td><input type='checkbox' id='rtignoreexpire'></td>
+ </tr>
+
+ </table>
+ </div>
+
+ <table align="center">
+ <tr><td colspan=2 align=center><div id='status'></div></td></tr>
+ <tr><td colspan=2 align=center>
+ <input style='width:80' type='button' id='save' value='Save'> <input style='width:80' type='button' id='cancel' value='Cancel'>
+ </td>
+ </tr>
+ </table>
+
+</td>
+</tr>
+</table>
+</div>
+<div style='visibility:hidden;overflow:hidden;width:0px;height:0px'>
+<select size="5" id="hiddenfield" style="width:220px">
+</select>
+</div>
+</body>
Added: trunk/config/jabber.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/jabber.html?rev=27&view=auto
==============================================================================
--- trunk/config/jabber.html (added)
+++ trunk/config/jabber.html Tue Sep 12 16:07:51 2006
@@ -1,0 +1,126 @@
+<!--
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Configuration for "Users" generally
+ *
+ * Copyright (C) 1999 - 2006, Digium, Inc.
+ *
+ * Mark Spencer <markster at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ *
+-->
+
+<script src="scripts/prototype.js"></script>
+<script src="scripts/rico.js"></script>
+<script src="scripts/astman.js"></script>
+<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 phonecallbacks = new Object;
+var widgets = new Array;
+var fieldnames = new Array('status', 'save', 'cancel', 'new', 'delete','name', 'username','secret','type','serverhost','port','usetls','usesasl','buddy','statusmessage','timeout');
+
+phonecallbacks.format = function(t) {
+ tmp = t.name.split('general');
+ if(tmp.length>1)
+ return false;
+ else
+ return t.name;
+}
+
+
+phonecallbacks.postselect = function(box, val) {
+
+}
+
+
+
+phonecallbacks.loaded = function() {
+ //$('hiddenfield').selectitem(0);
+}
+
+
+
+
+ function localajaxinit() {
+ // Load the jabber.conf->users into the Users, associate the field to other fields
+ parent.loadscreen(this);
+ for (var x in fieldnames) {
+ widgets[fieldnames[x]] = $(fieldnames[x]);
+ widgets[fieldnames[x]].disabled = true;
+ }
+ parent.astmanEngine.config2list("jabber.conf", $('JabberUsers'), widgets, phonecallbacks);
+ return;
+ }
+</script>
+<body id="foo" onload="localajaxinit()">
+<div class="mainscreenTitleBar">
+ <span style="margin-left: 4px;font-weight:bold">Jabber Users Configuration</span>
+</div>
+<div class="mainscreenContentBox" id="userscontent">
+<table class="mainscreenTable" align="center">
+ <tr valign="top">
+ <td colspan='2'>
+ Users:
+ </td>
+ </tr>
+ <tr valign="top">
+ <td>
+ <select size="28" id="JabberUsers" style="width:220px">
+ <option>Loading...</option>
+ </select>
+ </td>
+ <td colspan='3'>
+ <div id='adjustments' style='width:350'>
+ <table cellspacing='0' cellpadding='0'>
+ <tr valign="top"><td>
+ <table>
+ <tr><td>Extension:</td><td><input size='10' id='name'></td></tr>
+ <tr><td>Username:</td><td><input size='20' id='username'></td></tr>
+ <tr><td>Password:</td><td><input size='12' id='secret'></td></tr>
+ <tr><td>Type:</td><td><input size='12' id='type'></td></tr>
+ <tr><td>Server Host:</td><td><input size='20' id='serverhost'></td></tr>
+ <tr><td>Port:</td><td><input size='4' id='port'></td></tr>
+ <tr><td>Use TLS:</td><td><input type="checkbox" id='usetls'></td></tr>
+ <tr><td>Use SASL:</td><td><input type="checkbox" id='usesasl'></td></tr>
+ <tr><td>Buddy:</td><td><input size='15' id='buddy'></td></tr>
+ <tr><td>Status Message:</td><td><input size='20' id='statusmessage'></td></tr>
+ <tr><td>TimeOut:</td><td><input size='3' id='timeout'></td></tr>
+ <tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td></tr>
+ <tr>
+ <td align='center'>
+ <table>
+ <tr align='center'><td>
+ <input style='width:80' type='button' id='new' value='New'>
+ </td><td>
+ <input style='width:80' type='button' id='delete' value='Delete'>
+ </td></tr>
+ </table>
+ </td>
+ <td colspan='1' align='right'>
+ <input style='width:80' type='button' id='save' value='Save'>
+
+ <input style='width:80' type='button' id='cancel' value='Cancel'>
+
+ </td>
+ </tr><tr>
+ </tr>
+</table>
+</div>
+</body>
Added: trunk/config/jingle.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/jingle.html?rev=27&view=auto
==============================================================================
--- trunk/config/jingle.html (added)
+++ trunk/config/jingle.html Tue Sep 12 16:07:51 2006
@@ -1,0 +1,115 @@
+<!--
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Configuration for "Users" generally
+ *
+ * Copyright (C) 1999 - 2006, Digium, Inc.
+ *
+ * Mark Spencer <markster at digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ *
+-->
+
+<script src="scripts/prototype.js"></script>
+<script src="scripts/rico.js"></script>
+<script src="scripts/astman.js"></script>
+<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 phonecallbacks = new Object;
+var widgets = new Array;
+var fieldnames = new Array('status', 'save', 'cancel', 'new', 'delete','name', 'username','disallow','allow','context','connection');
+
+phonecallbacks.format = function(t) {
+ tmp = t.name.split('general');
+ if(tmp.length>1)
+ return false;
+ else
+ return t.name;
+}
+
+phonecallbacks.postselect = function(box, val) {
+
+}
+
+phonecallbacks.loaded = function() {
+ //$('hiddenfield').selectitem(0);
+}
+
+function localajaxinit() {
+ // Load the jabber.conf->users into the Users, associate the field to other fields
+ parent.loadscreen(this);
+ for (var x in fieldnames) {
+ widgets[fieldnames[x]] = $(fieldnames[x]);
+ widgets[fieldnames[x]].disabled = true;
+ }
+ parent.astmanEngine.config2list("jingle.conf", $('JingleUsers'), widgets, phonecallbacks);
+ return;
+}
+</script>
+<body id="foo" onload="localajaxinit()">
+<div class="mainscreenTitleBar">
+ <span style="margin-left: 4px;font-weight:bold">Jingle Configuration</span>
+</div>
+<div class="mainscreenContentBox" id="userscontent">
+<table class="mainscreenTable" align="center">
+ <tr valign="top">
+ <td colspan='2'>
+ Users:
+ </td>
+ </tr>
+ <tr valign="top">
+ <td>
+ <select size="28" id="JingleUsers" style="width:220px">
+ <option>Loading...</option>
+ </select>
+ </td>
+ <td colspan='3'>
+ <div id='adjustments' style='width:350'>
+ <table cellspacing='0' cellpadding='0'>
+ <tr valign="top"><td>
+ <table>
+ <tr><td>Extension:</td><td><input size='10' id='name'></td></tr>
+ <tr><td>Username:</td><td><input size='20' id='username'></td></tr>
+ <tr><td>disallow:</td><td><input size='12' id='disallow'></td></tr>
+ <tr><td>allow:</td><td><input size='12' id='allow'></td></tr>
+ <tr><td>context:</td><td><input size='12' id='context'></td></tr>
+ <tr><td>connection:</td><td><input size='12' id='connection'></td></tr>
+ <tr><td colspan='2' align='center'><div style="height:15px" id='status'></div></td></tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td></tr>
+ <tr>
+ <td align='center'>
+ <table>
+ <tr align='center'><td>
+ <input style='width:80' type='button' id='new' value='New'>
+ </td><td>
+ <input style='width:80' type='button' id='delete' value='Delete'>
+ </td></tr>
+ </table>
+ </td>
+ <td colspan='1' align='right'>
+ <input style='width:80' type='button' id='save' value='Save'>
+
+ <input style='width:80' type='button' id='cancel' value='Cancel'>
+
+ </td>
+ </tr><tr>
+ </tr>
+</table>
+</div>
+</body>
Modified: trunk/config/options.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/options.html?rev=27&r1=26&r2=27&view=diff
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Tue Sep 12 16:07:51 2006
@@ -109,7 +109,6 @@
parent.loadscreen(this);
parent.astmanEngine.sendRequest('action=ping', options.pongs);
$('pwdbutton').disabled = true;
- document.cookie = "var2=something;"
return;
}
More information about the asterisk-gui-commits
mailing list