pari: trunk r653 - in /trunk/config: menus.html moh.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Apr 11 16:59:16 MST 2007


Author: pari
Date: Wed Apr 11 18:59:15 2007
New Revision: 653

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=653
Log:
new feature: Authenticate option in IVR Menus

Modified:
    trunk/config/menus.html
    trunk/config/moh.html

Modified: trunk/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/menus.html?view=diff&rev=653&r1=652&r2=653
==============================================================================
--- trunk/config/menus.html (original)
+++ trunk/config/menus.html Wed Apr 11 18:59:15 2007
@@ -46,6 +46,12 @@
 
 	if( temp[2].match("Answer") )
 		return "Answer the Call";
+	if( temp[2].match("Authenticate") ){
+		// Background('') - whatever in the brackets
+		temp[2] = temp[2].replace(/Authenticate\(/, "");
+		temp[2] = temp[2].replace(/\)/, "");
+		return "Authenticate for Password '" + temp[2] + "'";
+	}
 	if( temp[2].match("Background") ){
 		// Background('') - whatever in the brackets
 		temp[2] = temp[2].replace(/Background\(/, "");
@@ -331,6 +337,9 @@
 	switch ( _nsa.value ){
 	case 'Answer':
 		action_string = "s,"+ newpriority+ ",Answer";
+		break;
+	case 'Authenticate':
+		action_string = "s,"+ newpriority+ ",Authenticate(" + _nsv.value + ")";
 		break;
 	case 'Background':
 		action_string = "s,"+ newpriority+ ",Background(" + _nsv.value + ")";
@@ -681,7 +690,7 @@
         }else if( _nsa.value== "Background"  || _nsa.value== "Playback" ){
                 _nsv.style.display = "";
                 _nsv.size= 12;
-        }else if( _nsa.value== "DigitTimeout"  || _nsa.value== "ResponseTimeout" ||  _nsa.value== "Wait"  ||  _nsa.value== "WaitExten" ){
+        }else if( _nsa.value== "Authenticate"  || _nsa.value== "DigitTimeout"  || _nsa.value== "ResponseTimeout" ||  _nsa.value== "Wait"  ||  _nsa.value== "WaitExten" ){
                 _$('newstep_var_digit').style.display= "" ;
         }else if(_nsa.value== "GotoMenu"  ){
 		_nsv.value = _anm.value;
@@ -1120,6 +1129,7 @@
 				<select id='newstep_action' disabled onChange="update_newstep_var()" class="input8">
 					<option value=""> -- Select --</option>
 					<option value="Answer">Answer</option>
+					<option value="Authenticate">Authenticate</option>
 					<option value="Background">Background</option>
 					<!-- <option value="SetMusicOnHold">SetMusicOnHold</option> -->
 					<option value="DigitTimeout">DigitTimeout</option>

Modified: trunk/config/moh.html
URL: http://svn.digium.com/view/asterisk-gui/trunk/config/moh.html?view=diff&rev=653&r1=652&r2=653
==============================================================================
--- trunk/config/moh.html (original)
+++ trunk/config/moh.html Wed Apr 11 18:59:15 2007
@@ -62,7 +62,7 @@
 <div class="mainscreenContentBox" id="userscontent">
 <table class="mainscreenTable" align="center">
 	<tr valign="top">
-		<td colspan='2'>Users:</td>
+		<td colspan='2'>List of <I>'Music On Hold'</I> Classes:</td>
 	</tr>
 	<tr valign="top">
 		<td height="415">
@@ -88,7 +88,7 @@
 						</td>
 					</tr>
 					<tr>	<td class="field_text">Directory:</td>
-						<td>&nbsp;<input size='20' id='directory' class="input8"></td>
+						<td>&nbsp;<input size='25' id='directory' class="input8"></td>
 					</tr>
 					<tr>	<td class="field_text">Application:</td>
 						<td>&nbsp;<input size='25' id='application' class="input8"></td>



More information about the asterisk-gui-commits mailing list