Actions

Empty a group (Event Handler): Difference between revisions

From Zenitel Wiki

No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{AI}}
{{AI}}
'''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 the 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:
In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following event:
------------
[[File:Application13a.png|500px|left|thumb]]
{|  
<br style="clear:both;" />
|-
 
|width="100pt"|'''Event Owner''':
{{Code2|
|width="400pt"|Stations w/ UDP, Id: 8 (All stations!)
[[IF/ENDIF|IF]] [[%gns]](48,0)
|-
[[GROUP MEMBERSHIP|$GRM]] N[[%gns]](48,0) NG48 U0
|'''Event type''': || [[Event Trigger (Event Type)|15 - Event Trigger]]
[[EVENT_REPORT|$ER]] U15 U0 U1 U1 N[[%gns]](48,0) U3 %2.ref
|-
[[IF/ENDIF|ENDIF]]
|'''When change to''': || ON
}}
|-
|'''When related to''': || Directory number, Id: 9534
|-
|'''Action''': || [[IF/ENDIF|IF]] [[%gns]](48,0)
|-
| &nbsp; || [[GROUP MEMBERSHIP|$GRM]] N[[%gns]](48,0) NG48 U0
|-
| &nbsp; || [[EVENT_REPORT|$ER]] U15 U0 U1 U1 N[[%gns]](48,0) U3 %2.ref
|-
| &nbsp; || [[IF/ENDIF|ENDIF]]
|-
|}


------------
------------


AMC 9: The script uses approx. 3 seconds to empty a group of 100 members. 17 seconds when 552 members.
{{Note|AMC 9: The script uses approx. 3 seconds to empty a group of 100 members. 17 seconds when 552 members}}
 
{{Note|AMC 11: The script uses approx. 2 seconds to empty a group of 552 members}}
AMC 11: The script uses approx. 2 seconds to empty a group of 552 members.




[[Category:AlphaCom Applications]]
[[Category: AlphaCom Applications]]
[[Category: ICX-AlphaCom Applications]]
[[Category: ICX-AlphaCom Applications]]
[[Category:Applications using Event Handler]]

Latest revision as of 10:35, 8 July 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


MediaWiki spam blocked by CleanTalk.