Difference between revisions of "Anti-nuisance control (Event Handler)"
From Zenitel Wiki
Line 9: | Line 9: | ||
{| | {| | ||
|- | |- | ||
− | |width="100pt"|Event Owner: | + | |width="100pt"|'''Event Owner''': |
|width="300pt"|The Master Station | |width="300pt"|The Master Station | ||
|- | |- | ||
− | |Event type: || 25 – Event trigger with parameter | + | |'''Event type''': || 25 – Event trigger with parameter |
|- | |- | ||
− | |Subevent: || 0 | + | |'''Subevent''': || 0 |
|- | |- | ||
− | |When change to: || ON | + | |'''When change to''': || ON |
|- | |- | ||
− | |When related to: || All | + | |'''When related to''': || All |
|- | |- | ||
− | |Action: || $SSC L%2.dir U2 | + | |'''Action''': || $SSC L%2.dir U2 |
|- | |- | ||
| || $ST L%2.dir W9000 L9999 | | || $ST L%2.dir W9000 L9999 | ||
Line 33: | Line 33: | ||
{| | {| | ||
|- | |- | ||
− | |width="100pt"|Event Owner: | + | |width="100pt"|'''Event Owner''': |
|width="300pt"|Stations w/UDP Id: 8 (All stations) | |width="300pt"|Stations w/UDP Id: 8 (All stations) | ||
|- | |- | ||
− | |Event type: || 21 – Event timer | + | |'''Event type''': || 21 – Event timer |
|- | |- | ||
− | |When change to: || ON | + | |'''When change to''': || ON |
|- | |- | ||
− | |When related to: || Directory number: 9999 | + | |'''When related to''': || Directory number: 9999 |
|- | |- | ||
− | |Action: || $SSC L%1.dir U1 | + | |'''Action''': || $SSC L%1.dir U1 |
|- | |- | ||
|} | |} |
Revision as of 21:25, 9 October 2007
A master station should be able to disable calls from substations for a periode of time.
In the programming example below the master station dials 9535 + substation directory number to disable calls from that substation for 15 minutes.
Directory number 9535 is by default a two-step event trigger, feature 95/0. When 9535 + Substation is dialled, an event type 25 is triggered and the action string $SSC L%2.dir U2 moves the substation to COS 2. COS 2 is by default empty, which will prevent calls to be initiated. The command $DISCON_ST L%1.dir U2 will disconnect the master station with a success tone after having entered the substation number. Also a 15 minute timer is started by the command $ST L%2.dir W9000 L9999. The timer will trigger event type 21 when it times out, and the command $SSC L%1.dir U1 will move the station back to COS 1, and calls can again be made.
Event 1 - Move the substation to COS 2, start a timer, and disconnect the master station:
Event Owner: | The Master Station |
Event type: | 25 – Event trigger with parameter |
Subevent: | 0 |
When change to: | ON |
When related to: | All |
Action: | $SSC L%2.dir U2 |
$ST L%2.dir W9000 L9999 | |
$DISCON_ST L%1.dir U2 |
Event 2 - Move the substation back to COS 1:
Event Owner: | Stations w/UDP Id: 8 (All stations) |
Event type: | 21 – Event timer |
When change to: | ON |
When related to: | Directory number: 9999 |
Action: | $SSC L%1.dir U1 |