pari: trunk r969 - /trunk/config/menus.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Tue May 22 20:20:14 MST 2007


Author: pari
Date: Tue May 22 22:20:13 2007
New Revision: 969

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=969
Log:
Congestion in VoiceMenus

Modified:
    trunk/config/menus.html

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=969&r1=968&r2=969
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Tue May 22 22:20:13 2007
@@ -116,6 +116,9 @@
 	if( temp[2].match("Busy") )
 		return "Busy Tone";
 
+	if( temp[2].match("Congestion") )
+		return "Congestion";
+
 	if( temp[2].match("Directory") && temp[2].match("default"))
 		return "Goto Directory";
 
@@ -277,7 +280,7 @@
 		return;
 	}
 
-	if( _nsa.value != "Answer" && _nsa.value != "GotoDirecotry" && _nsa.value != "Busy" && _nsa.value != "Hangup" && !_nsv .value ){
+	if( _nsa.value != "Answer" && _nsa.value != "GotoDirecotry" && _nsa.value != "Busy" && _nsa.value != "Hangup" && _nsa.value != "Congestion" && !_nsv .value ){
 		gui_alert("Please enter a value for '" + _nsa.value +"'");
 		_nsv.focus();
 		return;
@@ -308,6 +311,9 @@
 		break;
 	case 'Busy':
 		action_string = "s,"+ newpriority+ ",Busy";
+		break;
+	case 'Congestion':
+		action_string = "s,"+ newpriority+ ",Congestion";
 		break;
 	case 'DigitTimeout':
 		action_string = "s,"+ newpriority+ ",Set(TIMEOUT(digit)=" + _nsv.value + ")";
@@ -679,7 +685,7 @@
 	_anm.style.display = "none";
 	_$('tbr').style.display = "none";
 
-        if( _nsa.value== "" || _nsa.value== "Answer"  || _nsa.value== "Hangup" || _nsa.value== "GotoDirecotry" || _nsa.value== "Busy" ){
+        if( _nsa.value== "" || _nsa.value== "Answer"  || _nsa.value== "Hangup" || _nsa.value== "GotoDirecotry" || _nsa.value== "Busy" || _nsa.value== "Congestion" ){
 
         }else if( _nsa.value== "Background"  || _nsa.value== "Playback" ){
                 _nsv.style.display = "";
@@ -1162,6 +1168,7 @@
 					<option value="Authenticate">Authenticate</option>
 					<option value="Background">Background</option>
 					<option value="Busy">Busy Tone</option>
+					<option value="Congestion">Congestion</option>
 					<!-- <option value="SetMusicOnHold">SetMusicOnHold</option> -->
 					<option value="DigitTimeout">DigitTimeout</option>
 					<option value="ResponseTimeout">ResponseTimeout</option>



More information about the asterisk-gui-commits mailing list