Actions

Integration with Milestone XProtect (IP CCTV)

From Zenitel Wiki

Revision as of 10:57, 30 June 2009 by Roarl (talk) (New page: ==Situation== thumb|350px|CCTV switch controlled by relays from AlphaCom When a master station is receiving Call Requests from a substation, an ev...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Situation

CCTV switch controlled by relays from AlphaCom

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.

When answering the call request a UDD is set to ensure that any new call requests received during conversation do 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.

Solution

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:

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 it 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 comands to the IP Video system.

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 %chg(1,0)
  IF %udd(%1.phy)
  STOP
  ENDIF
  pause
  pause
  pause
  $DD L%1.dir L7632
  IF %udd(600)
  STOP
  ENDIF
  EDO 1 "cam off"

Event 2 - When the conversation between the master and substation cancels, reset the conversation status (UDD), switch off the RCO, 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
  RCO %2.phy OFF
  $MAILQ_NAVIG L%1.dir 2

Event 3 - When receiving a Call Request or scrolling the queue, and the master station is not in conversation, activate the RCO assosiated to the selected substation.

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
  RCO %2.phy ON

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

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
  RCO %2.phy OFF