Actions

Integration with Milestone XProtect (IP CCTV)

From Zenitel Wiki

Revision as of 14:48, 14 August 2009 by Asle (talk)

Situation

When a master station is receiving Call Requests from a substation, an event can be activated to control the Milestone IP Video surveillance system. Using the AlphaCom's EDO port the system allows for a few simple events to control cameras located in association with a station. When scrolling the queue, the event handler transmits commands related to the selected station. In this way the picture on the monitor will follow the queue navigation on the master station.

If any new call requests are received while in conversation, this will not influence on the active image. When the conversation is cancelled, and there are still calls in the queue, the image assosiated to the first station in queue will be displayed.

Configuration

The master station should use the 763x codes for queue navigation. These directory numbers should be assigned to DAK keys. A number of station types can be used for call queuing. The station should be prepared for call queue operation, how to do this depends on the station type used:

Communication setup

EDO setup. Select 'TCP/IP Client' mode, and specify the IP Address of the Milestone server

The MileStone XProtect is by default using TCP port 1234 for generic events. If required this port number can be modified from Milestone XProtect Administrator, I/O Setup -> Advanced -> Alert port.

From AlphaPro, Exchange & System -> Serial Ports, the EDO port must be configured to communiate with the computer running the Milestone XProtect server.


Event which causes AlphaCom to disconnect TCP after transmission

The Milestone XProtect server requires that the TCP/IP connection is disconnected after every transmission. The AlphaCom can be set to

Include all substations with cameras in UDP group 2.

The Event Handler is used to transmit commands through the EDO port to the Milestone IP Video system.

A UDD is used to store the conversation status of the master station. 0 = no conversation, 1 = conversation. The index of the UDD is equal to the physical nymber of the master station. The UDD is checked when call requests are received or deleted. If there is a conversation active no commands should be transmitted. In addition UDD 600 is set if there is any priority mails in the queue at all.


In AlphaPro, go to Exchange and System -> Events, press Insert and create the following events:


Event 1 - When a conversation is made from the master station to the substation, set the conversation status in the UDD, and transmit camera commands to the IP Video system. Also check if the camera is not already active due to other events.

Event Owner: The Master Station (or a UDP group of master stations)
Event type: 08 - Conversation Outgoing
Subevent: 0
When change to: ON or OFF
When related to: Stations w. UDP, Id: 2
Action: WUDD %1.phy 1
  IF %udd(%2.phy)
  STOP
  ENDIF
  EDO 1 "cam %2.phy on"

Event 2 - When the conversation between the master and substation cancels, reset the conversation status (UDD), switch off the camera, and activate the MAILQ_NAVIG command. This command will step to the first in the queue, and re-trigger the '23 - New Current Mail' event.

Event Owner: The Master Station (or a UDP group of master stations)
Event type: 08 - Conversation Outgoing
Subevent: 0
When change to: OFF
When related to: Stations w. UDP: Id 2
Action: WUDD %1.phy 0
  WUDD %2.phy 0
  $MAILQ_NAVIG L%1.dir 2
  EDO 1 "cam off"

Event 3 - When receiving a Call Request or scrolling the queue, and the master station is not in conversation, activate the camera assosiated with the selected substation. Also set a UDD for the substation with the active camera.

Event Owner: The Master Station (or a UDP group of master stations)
Event type: 23 - New Current Mail
Subevent: 0
When change to: ON
When related to: Stations w. UDP, Id: 2
Action: IF %udd(%1.phy)
  STOP
  ENDIF
  EDO 1 "cam %2.phy on"
  WUDD %2.phy 1

Event 4 - When a queue entry is deleted or scrolled away from, and the master station is not in conversation, switch off the camera:

Event Owner: The Master Station (or a UDP group of master stations)
Event type: 23 - New Current Mail
Subevent: 0
When change to: OFF
When related to: Stations w. UDP, Id: 2
Action: IF %udd(%1.phy)
  STOP
  ENDIF
  IF %udd(%2.phy)
  STOP
  ENDIF
  EDO 1 "cam off"