pari: branch 2.0 r3756 - /branches/2.0/config/menus.html

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Sep 4 15:21:37 CDT 2008


Author: pari
Date: Thu Sep  4 15:21:37 2008
New Revision: 3756

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3756
Log:

 AA50-2224 -->  Add UserEvent Application in VoiceMenus



Modified:
    branches/2.0/config/menus.html

Modified: branches/2.0/config/menus.html
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/menus.html?view=diff&rev=3756&r1=3755&r2=3756
==============================================================================
--- branches/2.0/config/menus.html (original)
+++ branches/2.0/config/menus.html Thu Sep  4 15:21:37 2008
@@ -290,6 +290,15 @@
 					_$('newstep_dial_ThisNumber').value = '';
 					_$('newstep_dial_ViaTrunk').selectedIndex = -1 ;
 					break;
+				case 'UserEvent':
+					lbl('User Event');
+					tip_chosenStep.innerHTML = 'Send an arbitrary event to the manager interface';
+					$('#newstep_UserEvent_eventname').show();
+					$('#newstep_UserEvent_body').show();
+					$('#newstep_UserEvent_body_lbl').show();
+					_$('newstep_UserEvent_eventname').value = '';
+					_$('newstep_UserEvent_body').value = '';
+					break;
 				case 'CustomApp':
 					lbl('Custom App');
 					$('#newstep_custom').show();
@@ -374,6 +383,14 @@
 			case 'DialViaTrunk':
 				var tmp_trunkName = ASTGUI.getFieldValue('newstep_dial_ViaTrunk');
 				newstep =  'Macro('+ ASTGUI.contexts.dialtrunks + ',${' + tmp_trunkName + '}/'+ ASTGUI.getFieldValue('newstep_dial_ThisNumber') +',,'+ tmp_trunkName + ',)' ;
+				break;
+			case 'UserEvent':
+				var tmp_EventName = ASTGUI.getFieldValue('newstep_UserEvent_eventname');
+				var tmp_EventBody = ASTGUI.getFieldValue('newstep_UserEvent_body');
+				if( tmp_EventBody.trim() ){
+					tmp_EventName = tmp_EventName + '|' + tmp_EventBody ;
+				}
+				newstep =  'UserEvent('+ tmp_EventName + ')';
 				break;
 			case 'CustomApp':
 				newstep = ASTGUI.getFieldValue('newstep_custom') ;
@@ -808,6 +825,7 @@
 							<option value="GotoDirecotry">Goto Directory</option>
 							<option value="DialViaTrunk">Dial a Number via Trunk</option>
 							<option value="CustomApp">Custom App</option>
+							<option value="UserEvent">User Event</option>
 <!--							<option value="CheckOwnVoiceMail">Check Voicemail for Own Extension</option>-->
 							<option value="Hangup">Hangup</option>
 						</select>
@@ -830,6 +848,9 @@
 						<input  class='class_newStep_details_td' id="newstep_custom" size=24>
 						<input class='class_newStep_details_td' id="newstep_dial_ThisNumber" size=10>
 						<select class='class_newStep_details_td' id="newstep_dial_ViaTrunk"></select>
+						<input class='class_newStep_details_td' id="newstep_UserEvent_eventname" size=5>
+						<span  class='class_newStep_details_td' id='newstep_UserEvent_body_lbl'>Body:</span>
+						<input class='class_newStep_details_td' id="newstep_UserEvent_body" size=5>
 					</td>
 					<td>
 						<span class='guiButton' onclick='VoiceMenus_miscFunctions.push_newstep();'>&uarr; Add new Step</span>




More information about the asterisk-gui-commits mailing list