Empty a group (Event Handler): Difference between revisions
From Zenitel Wiki
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
|'''Action''': || [[IF/ENDIF|IF]] [[%gns]](48,0) | |'''Action''': || [[IF/ENDIF|IF]] [[%gns]](48,0) | ||
|- | |- | ||
| || $GRM N[[%gns]](48,0) NG48 U0 | | || [[GROUP MEMBERSHIP|$GRM]] N[[%gns]](48,0) NG48 U0 | ||
|- | |- | ||
| || [[EVENT_REPORT|$ER]] U15 U0 U1 U1 N | | || [[EVENT_REPORT|$ER]] U15 U0 U1 U1 N[[%gns]](48,0) U3 %2.ref | ||
|- | |- | ||
| || [[IF/ENDIF|ENDIF]] | | || [[IF/ENDIF|ENDIF]] | ||
Revision as of 15:36, 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: | IF %gns(48,0) |
| $GRM N%gns(48,0) NG48 U0 | |
| $ER U15 U0 U1 U1 N%gns(48,0) U3 %2.ref | |
| ENDIF |
AMC 9: The script uses approx. 3 seconds to empty a group of 100 members. 17 seconds when 552 members.
