pari: trunk r72 - in /trunk/config: ./ scripts/

asterisk-gui-commits at lists.digium.internal asterisk-gui-commits at lists.digium.internal
Mon Oct 16 13:13:19 MST 2006


Author: pari
Date: Mon Oct 16 15:13:18 2006
New Revision: 72

URL: http://svn.digium.com/view/asterisk-gui?rev=72&view=rev
Log:
Heck! .. I forgot to do an 'svn add' on moh.html a couple of weeks back  and I lost the file .. had to write again

Added:
    trunk/config/moh.html
Modified:
    trunk/config/cfgadvanced.html
    trunk/config/cfgappliance.html
    trunk/config/options.html
    trunk/config/scripts/tooltip.js

Modified: trunk/config/cfgadvanced.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgadvanced.html?rev=72&r1=71&r2=72&view=diff
==============================================================================
--- trunk/config/cfgadvanced.html (original)
+++ trunk/config/cfgadvanced.html Mon Oct 16 15:13:18 2006
@@ -77,6 +77,9 @@
 
 		new PanelDef("menus", "Voice Menus", "accordion-icon.gif",
 			"Menus allow for more efficient routing of calls from incoming callers."),
+
+		new PanelDef("record_vmenu", "Record a Menu", "accordion-icon.gif",
+			"Allows you to record custom voicemenus over a phone"),
 
 		new PanelDef("moh", "Music On Hold", "accordion-icon.gif", " Music on hold sometimes keeps people less angry while they wait for an answer"),
 

Modified: trunk/config/cfgappliance.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/cfgappliance.html?rev=72&r1=71&r2=72&view=diff
==============================================================================
--- trunk/config/cfgappliance.html (original)
+++ trunk/config/cfgappliance.html Mon Oct 16 15:13:18 2006
@@ -68,12 +68,12 @@
 		new PanelDef("queues", "Call Queues", "accordion-icon.gif",
 			"Call queues allow calls to be sequenced to one or more agents."),
 
-		new PanelDef("trunks", "Trunks", "accordion-icon.gif",
-			"Trunks are outbound lines used to allow the system to make calls to the " +
+		new PanelDef("trunks", "Service Providers", "accordion-icon.gif",
+			"Service Providers are outbound lines used to allow the system to make calls to the " +
 			"real world.  Trunks can be VoIP lines or traditional telephony lines."),
 
-		new PanelDef("numberplan", "Number Plan", "accordion-icon.gif",
-			"The number plan defines dialing permissions and least cost routing rules."),
+		new PanelDef("numberplan", "Calling Rules", "accordion-icon.gif",
+			"The Calling Rules defines dialing permissions and least cost routing rules."),
 
 		new PanelDef("networking", "Networking", "accordion-icon.gif",
 			"Configures networking parameters"),

Added: trunk/config/moh.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/moh.html?rev=72&view=auto
==============================================================================
--- trunk/config/moh.html (added)
+++ trunk/config/moh.html Mon Oct 16 15:13:18 2006
@@ -1,0 +1,111 @@
+<!--
+ * 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 mohcallbacks = new Object;
+var widgets = new Array;
+var fieldnames = new Array('status', 'save', 'cancel', 'new', 'delete','name', 'mode','directory','application','format','random');
+
+mohcallbacks.format = function(t) {
+			return t.name;
+}
+
+mohcallbacks.postselect = function(box, val) {
+	
+}
+
+mohcallbacks.loaded = function() {
+
+}
+
+function localajaxinit() {
+			// Load the jabber.conf->users into the Users, associate the field to other fields
+			parent.loadscreen(this);
+			for (var x =0; x < fieldnames.length; x++) {
+				widgets[fieldnames[x]] = $(fieldnames[x]);
+				widgets[fieldnames[x]].disabled = true;
+			}
+			parent.astmanEngine.config2list("musiconhold.conf", $('moh_classes'), widgets, mohcallbacks);
+			return;
+}
+</script>
+<body id="foo" onload="localajaxinit()">
+<div class="mainscreenTitleBar">
+	<span style="margin-left: 4px;font-weight:bold">Music on Hold Classes</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="moh_classes" 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>Class:</td>						<td><input size='12' id='name'></td></tr>
+						<tr><td>Mode:</td>						<td><input size='20' id='mode'></td></tr>
+						<tr><td>Directory:</td>		<td><input size='12' id='directory'></td></tr>
+						<tr><td>Application:</td>		<td><input size='12' id='application'></td></tr>
+						<tr><td>Format:</td>		<td><input size='12' id='format'></td></tr>
+						<tr><td>Random:</td>		<td><input size='12' id='random'></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'>
+				&nbsp;
+				<input style='width:80' type='button' id='cancel' value='Cancel'>
+				&nbsp;
+		</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=72&r1=71&r2=72&view=diff
==============================================================================
--- trunk/config/options.html (original)
+++ trunk/config/options.html Mon Oct 16 15:13:18 2006
@@ -29,8 +29,11 @@
 var options_fields = new Array('pwdbutton', 'currentpass', 'newpass','newpass_rep');
 var widgets = new Array;
 var fieldnames = new Array('status','bindaddr','bindport','save','cancel');
+var widgets2  = new Array;
+var fieldnames2 = new Array('status','httptimeout','save','cancel');
+
 var httpconf_callbacks = new Object;
-
+var managerconf_callbacks = new Object;
 function loggedOff() {
 			for(var x=0; x< options_fields.length; x++){
 				$(options_fields[x]).disabled = true;
@@ -108,6 +111,12 @@
 		widgets[fieldnames[x]] = $(fieldnames[x]);
 		widgets[fieldnames[x]].disabled = true;
 	}
+
+	for (var x in fieldnames2) {
+		widgets2[fieldnames2[x]] = $(fieldnames2[x]);
+		widgets2[fieldnames2[x]].disabled = true;
+	}
+
 	parent.astmanEngine.config2list("http.conf", $('hiddenfield'), widgets, httpconf_callbacks);
 	return;
 }
@@ -121,10 +130,25 @@
 }
 
 httpconf_callbacks.loaded = function() {
+
+		parent.astmanEngine.config2list("manager.conf", $('hiddenfield2'), widgets2, managerconf_callbacks);
 		$('hiddenfield').selectitem(0);
+}
+
+
+
+managerconf_callbacks.format = function(t) {
+		var tmp = t.name.split('general');
+		if(tmp.length>1)
+			return t.name;
+		else
+			return false;
+}
+
+managerconf_callbacks.loaded = function() {
+	$('hiddenfield2').selectitem(0);
 		parent.loadscreen(this);
 }
-
 </script>
 <body id="foo" onload="localajaxinit()">
 <div class="mainscreenTitleBar"><span style="margin-left: 4px;font-weight:bold">Admin Options</span></div>
@@ -142,16 +166,18 @@
 					</div>
 			</td>
 	</tr>
-	<tr valign="top" height="18">	<td><B>GUI - acess settings: </B></td></tr>
+	<tr valign="top" height="18">	<td><B>GUI - access settings: </B></td></tr>
 	<tr>	<td align="center" valign="top" height=170>
 					<div id="channellist" class="chanlist">
 					<table>	<tr>	<td colspan=2 height=18></td></tr>
 									<tr  onmouseover="show_tooltip('en', 'options', 3);"><td>Bind Address:</td>		<td><input size=14 id='bindaddr' dfalt="127.0.0.1"></td></tr>
 									<tr  onmouseover="show_tooltip('en', 'options', 4);"><td>Port:</td>						<td><input size=14 id='bindport' dfalt=80></td></tr>
+									<tr  onmouseover="show_tooltip('en', 'options', 5);"><td>HTTP Timeout:</td>	<td><input size=14 id='httptimeout'></td></tr>
 									<tr><td colspan=2><BR></td></tr>
 									<tr><td colspan=2 align=center><input type=button id=save value="Save">&nbsp;<input type=button id=cancel value="Cancel"></td></tr>
 					</table>
-					<select  size="5" id="hiddenfield" style="display:none; width:220px"></select>
+					<select  size="5" id="hiddenfield" style="display:none;"></select>
+					<select  size="5" id="hiddenfield2" style="display:none; width:220px"></select>
 					</div>
 			</td>
 	</tr>

Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?rev=72&r1=71&r2=72&view=diff
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Mon Oct 16 15:13:18 2006
@@ -177,6 +177,8 @@
 	tooltips['options'].en[2] = "<BR><B>Retype New Password:</B> Retype New Password ";
 	tooltips['options'].en[3] = "<BR><B>Bind Address:</B> The IP address to which the GUI will be assigned to.";
 	tooltips['options'].en[4] = "<BR><B>Port:</B> GUI port. Must be specified in browser while accessing the GUI";
+	tooltips['options'].en[5] = "<BR><B>HTTP Timeout:</B> Session time out in seconds";
+
 
 	// Tooltips for status(status)
 	tooltips['status']= new Object;



More information about the asterisk-gui-commits mailing list