bkruse: trunk r1279 - in /trunk: ./ config/ config/scripts/

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Jul 31 18:04:43 CDT 2007


Author: bkruse
Date: Tue Jul 31 18:04:43 2007
New Revision: 1279

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1279
Log:
Support for dynamically allowing parked access to the parked calls parking lot. This will let administrators have the ability to control which dialplans(numberplans) have access to the parking lot

Modified:
    trunk/config/numberplan.html
    trunk/config/scripts/tooltip.js
    trunk/todo.txt

Modified: trunk/config/numberplan.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/numberplan.html?view=diff&rev=1279&r1=1278&r2=1279
==============================================================================
--- trunk/config/numberplan.html (original)
+++ trunk/config/numberplan.html Tue Jul 31 18:04:43 2007
@@ -29,7 +29,7 @@
 var trunks_desc = { };
 var numplan_callbacks = { };
 var numberplansdata = { };
-var fieldnames = ['cancel', 'delete', 'include', 'name', 'new', 'plancomment', 'save'];
+var fieldnames = ['cancel', 'delete', 'include', 'name', 'new', 'plancomment', 'save', 'parked'];
 
 //var default_numberplan = 0;
 var isnewrule ;
@@ -38,6 +38,16 @@
 var pattern_beingedited_priority ;
 var np_oldselect;
 
+function update_parkedcalls() {
+	if(_$("parked").checked) {
+		var uri = build_action('append', 0, _$('extensions').value, "include", "parkedcalls");   	
+		makerequest('u', 'extensions.conf', uri, function(t) { return true;});
+	} 
+	if(!_$("parked").checked) {
+		var uri = build_action('delete', 0, _$('extensions').value, "include", "", "parkedcalls");   	
+		makerequest('u', 'extensions.conf', uri, function(t) { return true;});
+	}
+}
 function basicpattern(){
 	iscustom = false;
 	_$('define_advanced').style.display="none";
@@ -614,6 +624,7 @@
 		<CENTER><select id="extensions" class="input9" style="z-index:2"></select>&nbsp;&nbsp;
 			<a href="#" class="splbutton" onclick="newnumberplan()" tip="en,callingrules,0">new</a>&nbsp;&nbsp;
 			<a href="#" class="splbutton" onclick="delete_numberplan()"  tip="en,callingrules,1">delete</a>
+			<input class="splbutton" type="checkbox" tip="en,callingrules,10" id="parked" onChange="update_parkedcalls();">Allow Parked Calls</input> 
 			<input id='new' value='New' type="button"  style="display:none">
 			<input id='delete' value='Delete' type="button"  style="display:none">
 			

Modified: trunk/config/scripts/tooltip.js
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/scripts/tooltip.js?view=diff&rev=1279&r1=1278&r2=1279
==============================================================================
--- trunk/config/scripts/tooltip.js (original)
+++ trunk/config/scripts/tooltip.js Tue Jul 31 18:04:43 2007
@@ -281,6 +281,7 @@
 	tooltips['callingrules'].en[7] = "<B>Dialing Rules:</B> Ex: If the number begins with <I>'256'</I> and followed by <I>7</I> digits <i>or more</I>";
 	tooltips['callingrules'].en[8] = "<B>Custom Pattern:</B> Ex:  _91NXXNXXXXXX ";
 	tooltips['callingrules'].en[9] = "Ex: Strip <i>1</i> digits from the front and prepend <i>256</i> before dialing";
+	tooltips['callingrules'].en[10] = "Parked Calls: Check if you want to be able to access the parking lot from this Number Plan";
 
 	// Tooltips for Incoming Calls (incoming)
 	tooltips['incoming']= new Object;

Modified: trunk/todo.txt
URL: http://svn.digium.com/view/asterisk-gui/trunk/todo.txt?view=diff&rev=1279&r1=1278&r2=1279
==============================================================================
--- trunk/todo.txt (original)
+++ trunk/todo.txt Tue Jul 31 18:04:43 2007
@@ -21,8 +21,6 @@
 
 * Directory management - A printable sheet of users and numbers
   (For the time being you can create an IVR and use the directory option )
-
-* Agent logout Extension
 
 *  it would be very usefull, to define the max time a client can be in the queue.. so we can put a voice telling "Please leva a meesage we will cal you back" in a vm..   or something like that :) -- killfill on irc
 
@@ -55,3 +53,5 @@
 * Make the GUI resolution independent - request from BSD_tech
 
 * Initial support for Bandwidth.com
+
+* Agent logout Extension




More information about the asterisk-gui-commits mailing list