Actions

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

From Zenitel Wiki

Line 7: Line 7:
 
[[File:Application13a.png|500px|left|thumb]]
 
[[File:Application13a.png|500px|left|thumb]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
Actions:
+
 
{|  
+
{{Code2|
|-
+
[[IF/ENDIF|IF]] [[%gns]](48,0)
| [[IF/ENDIF|IF]] [[%gns]](48,0)
+
[[GROUP MEMBERSHIP|$GRM]] N[[%gns]](48,0) NG48 U0
|-
+
[[EVENT_REPORT|$ER]] U15 U0 U1 U1 N[[%gns]](48,0) U3 %2.ref
| [[GROUP MEMBERSHIP|$GRM]] N[[%gns]](48,0) NG48 U0
+
[[IF/ENDIF|ENDIF]]
|-
+
}}
| [[EVENT_REPORT|$ER]] U15 U0 U1 U1 N[[%gns]](48,0) U3 %2.ref
 
|-
 
| [[IF/ENDIF|ENDIF]]
 
|-
 
|}
 
  
 
------------
 
------------

Revision as of 14:15, 31 May 2022

AI.png

This is a script which removes all members from a group.

Here dialing the event trigger 9534 will remove all members of group 48.

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

Application13a.png


Action commands:

IF %gns(48,0)
$GRM N%gns(48,0) NG48 U0
$ER U15 U0 U1 U1 N%gns(48,0) U3 %2.ref
ENDIF



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


Note icon AMC 11: The script uses approx. 2 seconds to empty a group of 552 members