Actions

Difference between revisions of "Elevator alarm to external phone with voice identifcation"

From Zenitel Wiki

(Elevator station configuration)
(Elevator station configuration)
Line 42: Line 42:
  
 
[[File:Lift DAK.PNG|left|400px|thumb|Program the call button to dial Event Trigger 9534]]
 
[[File:Lift DAK.PNG|left|400px|thumb|Program the call button to dial Event Trigger 9534]]
br style="clear:both;" />
+
<br style="clear:both;" />
  
 
=== About Event Handler Programming ===
 
=== About Event Handler Programming ===

Revision as of 12:11, 8 August 2013

Forwarding of Call Request to external telephone

This article describes how elevator alarms can be routed to external telephones. When the telephone operator answers the call, the location of the alarm will be played as a voice message. The operator must acknowledge the alarm by pressing a digit, and two-way voice communication is established between the operator and the elevator.

If there are multiple alarms at the same time, the system will put the calls in queue, and set up calls one by one to the telephone as soon as the line becomes free. When an elevator station is put in queue, a message "Your call is registered, please wait" will be played to the elevator. The actual phrasing of the message can be modified.

In the configuration below there is a possibility of defining up to 6 different telephone numbers. If the first number is not acknowleding the call within a preset time, the second number will be called, and so on, until the call is acknowledged.


The call to the telephone will be activated only if there is a free telephone line. If all available lines are busy, the system will retry every 5 seconds until a line is free. If there are several Call Requests at the same time, they will be queued in the AlphaCom and handled one by one. The macro %tin (Trunk In Use) is used to check if there are any free lines.


Configuration

Prerequisites

Telephone gateway::

  • The SIP Gateway must be AudioCodes MP114/118, as the functionality depends on certain properties of this gateway. The SIP gateway should be configured as described in the relevant AlphaWiki articles.

Parameters used in the configuration examples:

  • Station 5152: A dummy station, receiving call requests from the elevators
  • UDP group 1: Elevator stations must be included in UDP group 1
  • Directory Number 9534: An event trigger number, dialled by the elevator stations to generate the call
  • UDD 500: Flag saying if the call has been acknowledged. 1=acknowledged. 0=Not acknowledged
  • UDD 501: A counter keeping track of which phone number to dial next

You can choose to use other parameters, but then you must carefully study each event and adjust the configuration accordingly.

Licenses:

Software requirement:

  • AMC 11.2.3.3 or newer.

The elevator station must be configured to dial an event trigger, which in turn sends a Call Request to a dummy station. The dummy number can be any station directory number in the exchange that is not in use. In this article 5152 on physical 552 is used as an example.

Bilde Elevator DAK.

Elevator station configuration

Program the call button to dial the Event Trigger number 9534.

Program the call button to dial Event Trigger 9534


About Event Handler Programming

In AlphaPro, Exchange & System -> Events, press Insert to add a new event

Event 1: Sends Call Request to Dummy when call button is pressed

This event is used for selective dialing to MOTOTRBO radios. The event collects the digits dialed while connected to the IP-ARIO (dirno 5). It checks that the digit pressed is between 0 and 9, and collects 4 digits, assuming that the Radio ID is a 4-digit number. (The line "WUDD 500 4" can be modified if the Radio ID consists of less or more digits). When four digits are collected, it will send an "AT+CCR" command on the EDO port, setting up a private call to the selected radio ID. The PTT (RCO 22) is pulsed to establish the call, and the digit counter (UDD 501) and the collected number (UDD 502) is cleared.

Event Owner: Stations w. UDP. ID: 1 (Elevator stations)
Event Type:  15 - Event Trigger Feature
Sub Event:   0
When Change To: ON
When Related To: Directory Number. Id: 9534
Action:
$SM L%1.dir L102
LOG "Lift alarm triggered by %1.dir"

Event 2: Dummy receives the call request and triggers the "Call setup event"

This event is used for selective dialing to MOTOTRBO radios. The event collects the digits dialed while connected to the IP-ARIO (dirno 5). It checks that the digit pressed is between 0 and 9, and collects 4 digits, assuming that the Radio ID is a 4-digit number. (The line "WUDD 500 4" can be modified if the Radio ID consists of less or more digits). When four digits are collected, it will send an "AT+CCR" command on the EDO port, setting up a private call to the selected radio ID. The PTT (RCO 22) is pulsed to establish the call, and the digit counter (UDD 501) and the collected number (UDD 502) is cleared.

Event Owner: Station Id - 552 (Dummy station)
Event Type:  10 - Received mail
Sub Event:   0
When Change To: ON or OFF
When Related To: All
Action:
$ST L%2.dir W%chg(10,0) L9900
IF %chg(1,0)
LOG "Station %2.dir %2.nam is put in call queue"
stop
ENDIF
LOG "Station %2.dir %2.nam is removed from call queue"

Event 3: Call setup event. Sets up external phonecall if the line is free

This event is used for selective dialing to MOTOTRBO radios. The event collects the digits dialed while connected to the IP-ARIO (dirno 5). It checks that the digit pressed is between 0 and 9, and collects 4 digits, assuming that the Radio ID is a 4-digit number. (The line "WUDD 500 4" can be modified if the Radio ID consists of less or more digits). When four digits are collected, it will send an "AT+CCR" command on the EDO port, setting up a private call to the selected radio ID. The PTT (RCO 22) is pulsed to establish the call, and the digit counter (UDD 501) and the collected number (UDD 502) is cleared.

Event Owner: Stations w. UDP. ID: 1 (Elevator stations)
Event Type:  21 - Event Timeout
Sub Event:   0
When Change To: ON
When Related To: Directory Number, Id = 9900
Action:
IF %op(%tin(100),=,1)
LOG "The gateway is busy, %1.dir %1.nam will try again in 5 seconds"
$ST L%1.dir W50 L9900
stop
ENDIF
LOG "The gateway is free"
WUDD 501 %op(%udd(501),+,1)
$C L%1.dir
pause
pause
pause
pause
pause
pause
IF %op(%udd(501),=,1)
LOG "Station %1.dir %1.nam is dialing phone #1"
$PD %1.ref "0W87654321"
ENDIF
IF %op(%udd(501),=,2)
LOG "Station %1.dir %1.nam is dialing phone #2"
$PD %1.ref "0W87654322"
ENDIF
IF %op(%udd(501),=,3)
LOG "Station %1.dir %1.nam is dialing phone #3"
$PD %1.ref "0W87654323"
ENDIF
IF %op(%udd(501),=,4)
LOG "Station %1.dir %1.nam is dialing phone #4"
$PD %1.ref "0W87654324"
ENDIF
IF %op(%udd(501),=,5)
LOG "Station %1.dir %1.nam is dialing phone #5"
$PD %1.ref "0W87654325"
ENDIF
IF %op(%udd(1),=,6)
LOG "Station %1.dir %1.nam is dialing phone #6"
$PD %1.ref "0W87654326"
WUDD 501 0
ENDIF
WUDD 500 0
$ST L%1.dir W400 L9901

About the expression "IF %op(%tin(100),>=,1)":

  • 100 = the node number of the SIP Trunk. Change if required.
  • 1 = There is one phone line connected to the SIP Gateway. If multiple lines are connected to the MP114/118 gateway, you need to change this number accordingly.


In the expression "$PD %1.ref "0W87654321"" substitute 87654321 with the wanted phone number.


Event 4: Dials next phone number

Triggered after timeout because This event is used for selective dialing to MOTOTRBO radios. The event collects the digits dialed while connected to the IP-ARIO (dirno 5). It checks that the digit pressed is between 0 and 9, and collects 4 digits, assuming that the Radio ID is a 4-digit number. (The line "WUDD 500 4" can be modified if the Radio ID consists of less or more digits). When four digits are collected, it will send an "AT+CCR" command on the EDO port, setting up a private call to the selected radio ID. The PTT (RCO 22) is pulsed to establish the call, and the digit counter (UDD 501) and the collected number (UDD 502) is cleared.

Event Owner: Stations w. UDP. ID: 1 (Elevator stations)
Event Type:  21 - Event Timeout
Sub Event:   0
When Change To: ON
When Related To: Directory Number, Id = 9901
Action:
$C L%1.dir
$ST L%1.dir W10 L9900
LOG "The phonecall timed out. Trying again.."


Event 5: Play voice message to phone operator when the call is answered

(when speech is detected)

This event is used for selective dialing to MOTOTRBO radios. The event collects the digits dialed while connected to the IP-ARIO (dirno 5). It checks that the digit pressed is between 0 and 9, and collects 4 digits, assuming that the Radio ID is a 4-digit number. (The line "WUDD 500 4" can be modified if the Radio ID consists of less or more digits). When four digits are collected, it will send an "AT+CCR" command on the EDO port, setting up a private call to the selected radio ID. The PTT (RCO 22) is pulsed to establish the call, and the digit counter (UDD 501) and the collected number (UDD 502) is cleared.

Event Owner: Stations w. UDP. ID: 1 (Elevator stations)
Event Type:  36 - SIP Progress Event
Sub Event:   20
When Change To: ON
When Related To: All
Action:
IF %udd(500)
stop
ENDIF
LOG "Speech from the telephone is detected. Play ACK voice message twice to the phone"
$SVP_ST L%1.dir U30 U%1.phy U1 U2

Event 6: Call acknowledement

(when speech is detected)

This event is used for selective dialing to MOTOTRBO radios. The event collects the digits dialed while connected to the IP-ARIO (dirno 5). It checks that the digit pressed is between 0 and 9, and collects 4 digits, assuming that the Radio ID is a 4-digit number. (The line "WUDD 500 4" can be modified if the Radio ID consists of less or more digits). When four digits are collected, it will send an "AT+CCR" command on the EDO port, setting up a private call to the selected radio ID. The PTT (RCO 22) is pulsed to establish the call, and the digit counter (UDD 501) and the collected number (UDD 502) is cleared.

Event Owner: Stations w. UDP. ID: 1 (Elevator stations)
Event Type:  15 - Event Trigger Feature
Sub Event:   0
When Change To: ON
When Related To: All
Action:
$ST L%1.dir W0 L9900
$ST L%1.dir W0 L9901
WUDD 500 1
WUDD 501 0
$CANM L%1.dir L102
LOG "The call is acknowledged."