Actions

Elevator alarm to external phone with voice identifcation

From Zenitel Wiki

Revision as of 16:17, 7 August 2013 by Asle (talk) (Prerequisites)
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.


Software requirement: AMC 11.2.3.3 or newer.

Configuration

Prerequisites

  • Telephone gateway: Must be type AudioCodes MP114/118.
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
  • 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.

The AlphaCom must have a Enhanced Audio Messaging license to be able to play prerecorded messages to the phone operator.


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.


Event 2: Selective dialing

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: 8
Event Type:  25 Event Trigger w/User Parameter
Sub Event:   255
When Change To: ON or OFF
When Related To: Directory Number. Id: 5
Action:
IF %op(%sev,>=,0)
IF %op(%sev,<=,9)
IF %chg(1,0)
WUDD 500 4
WUDD 501 %op(%udd(501),+,1)
WUDD 502 %op(%op(%udd(502),*,10),+,%sev)
IF %op(%udd(501),=,%udd(500))
$DSPL L%1.dir U18 0312 'Call: %udd(502) M=PTT'
EDO 1 "AT+CCR=1,4,1,%udd(502)\r"
LOG "=> AT+CCR=1,4,1,%udd(502)"
RCO 22 ON 5
WUDD 501 0
WUDD 502 0
ENDIF
ENDIF
ENDIF
ENDIF


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

Event 1: This event will start a 1 second timer when the dummy station receives a call request.

Event Owner: The Dummy Station
Event type: 10 - Received Mail
Subevent: 0
When change to: ON
When related to: All
Action: $ST L%1.dir W10 %2.ref


Event 2: When the timer expires, and if there is a free phone line, the calling station will be connected to the SIP gateway (i.e. dial "0") and the phone number 12345678 will be dialled.

If there are no free lines the timer is restarted, and a new attempt will be made 5 seconds later.

Event Owner: The Dummy Station
Event type: 21 - Event Timeout
Subevent: 0
When change to: ON
When related to: All
Action: IF %op(%tin(100),>=,1) (If the line is already in use on SIP Trunk node 100...)
  $ST L%1.dir W50 %2.ref (...then try again in 5 seconds by restarting the timer)
  STOP
  ENDIF (If the line is free...)
  $PD %2.ref "0W12345678" (...dial 0, then 1 sec pause, then dial 12345678)
  $CANM %2.ref L%1.dir (Delete the call request from the dummy station)


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 %2.ref "0W12345678"" substitute 12345678 with the wanted phone number.