Actions

Difference between revisions of "Empty a group (Event Handler)"

From Zenitel Wiki

Line 1: Line 1:
 
'''This is a script which removes all members from a group.  
 
'''This is a script which removes all members from a group.  
Here dialing event trigger 9534 will remove all members of group 48:'''  
+
Here dialing event trigger 9534 will remove all members of group 48:'''
 +
 
 +
In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following events:
 +
------------
 
{|  
 
{|  
 
|-
 
|-
|width="100pt"|Event Owner:
+
|width="100pt"|'''Event Owner''':
|width="300pt"|Stations w/ UDP, Id: 8 (All stations!)
+
|width="400pt"|Stations w/ UDP, Id: 8 (All stations!)
 
|-
 
|-
|Event type: || 15 - Event Trigger
+
|'''Event type''': || [[Event Trigger (Event Type|15 - Event Trigger]]
 
|-
 
|-
|When change to: || ON
+
|'''When change to''': || ON
 
|-
 
|-
|When related to: || Directory number Id: 0 | 9534
+
|'''When related to''': || Directory number, Id: 9534
 
|-
 
|-
|Action: <br\><br\><br\>|| IF %gns(48,0) <br\> $GRM N%gns(48,0) NG48 U0 <br\> $ER U15 U0 U1 U1 N%gns(48,0) U3 %2.ref <br\> ENDIF
+
|'''Action''': <br\><br\><br\>|| IF %gns(48,0) <br\> $GRM N%gns(48,0) NG48 U0 <br\> $ER U15 U0 U1 U1 N%gns(48,0) U3 %2.ref <br\> ENDIF
 
|-
 
|-
 
|}
 
|}

Revision as of 16:29, 18 November 2008

This is a script which removes all members from a group. Here dialing event trigger 9534 will remove all members of group 48:

In AlphaPro, go to Exchange and System -> Events, press Insert and create the following events:


Event Owner: Stations w/ UDP, Id: 8 (All stations!)
Event type: 15 - Event Trigger
When change to: ON
When related to: Directory number, Id: 9534
Action: <br\><br\><br\> IF %gns(48,0) <br\> $GRM N%gns(48,0) NG48 U0 <br\> $ER U15 U0 U1 U1 N%gns(48,0) U3 %2.ref <br\> ENDIF

AMC 9: The script uses approx. 3 seconds to empty a group of 100 members. 17 seconds when 552 members.