2-2a. Call indication - Event Handler (solution)
From Zenitel Wiki
Solution
Call indication, exercise 1
- When calling G. Galilei a lamp (RCO 4) should be activated when the private ringing starts. (G. Galilei is in “Private” mode).
- The lamp should be turned off when the private ringing stops.
In AlphaPro, Users & Stations, select station 6519 G. Galilei from the list box, and press the button Events. Insert a new event with the following properties:
Call indication, exercise 2
- The customer changes his mind; the lamp should go on when the private ringing starts and stay on also during the conversation. When the conversation ends the lamp should be switched off. If the call is not answered, the relay must drop when the ringing times out. The lamp should not go on when G. Galilei makes a call, only when receiving a call.
In this case we need to split the lamp control in two separate events, one event to turn the lamp on, another event to turn it off.
When the conversation is finnished (or the ringing times out), the station returns to idle mode. The event 04 - Station in Use will go OFF when the station returns to idle:
One could have used "Station in Use" event also to turn the lamp on, but then the lamp would be lit also on outgoing calls from Galilei.