Actions

IP Desktop Master Station with Video Display - Practical Examples

From Zenitel Wiki

Obsolete icon This product is discontinued!


The following example will make the video from the camera in the door station appear on the IP Desktop Master Station monitor when:

  • The door station press the call button thus making a Call Request to the reception
  • The reception makes a call to the door station

Single Station Configuration

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


Event 1 - When a call request is made from the door station to the reception, connect to the camera. If the call request is deleted a 1 second timer is set in stead.

Event Owner: The Master Station
Event type: 10 - Received Mail
Subevent: 0
When change to: ON or OFF
When related to: Directory Number, Id: 32
Action: IF %chg(1,0)
  EDO 1 "GET /cmd/CAMCONNECT.php?BOX=192.168.1.31&CAM=192.168.1.32 HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA ON"
  STOP
  ENDIF
  $ST L%1.dir W10

Event 2 - When a call request is answered, or a call is made or ended from the reception to the door station. A one second timer is set to avoid flicker.

Event Owner: The Master Station
Event type: 08 - Conversation Outgoing
Subevent: 0
When change to: ON or OFF
When related to: Directory Number, Id: 32
Action: $ST L%1.dir
  IF %chg(1,0)
  EDO 1 "GET /cmd/CAMCONNECT.php?BOX=192.168.1.31&CAM=192.168.1.32 HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA ON"
  STOP
  ENDIF
  EDO 1 "GET /cmd/CAMDISCONNECT.php?BOX=192.168.1.31 HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA OFF"

Event 3 - If the timer is not stopped due to a continous video, then the connection is dropped.

Event Owner: The Master Station
Event type: 21 - Event Timeout
Subevent: 0
When change to: ON
When related to: Directory Number, Id: 32
Action: EDO 1 "GET /cmd/CAMDISCONNECT.php?BOX=192.168.1.31 HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA OFF"

Multiple Station Configuration

If a system contains many camera stations and/or many monitor stations it is possible to generalise these events in order to eliminate the need to write an equal amount of events. It is then important that the IP address of the video equipment has a relationship with the physical address of the station.

Example: Station 31 - 131 Reception has a monitor with IP address 192.168.1.31

Then all Monitor stations, and all Door Stations can be put in the same UDP group.

The following events would then relate to all "video" stations:


Event 1 - When a call request is made from the door station to the reception, connect to the camera. If the call request is deleted a 1 second timer is set in stead.

Event Owner: Station w. UDP, Id: 2 - Stations w/Monitor
Event type: 10 - Received Mail
Subevent: 0
When change to: ON or OFF
When related to: Station w/UDP, Id: 1 - Stations w/Camera
Action: IF %chg(1,0)
  EDO 1 "GET /cmd/CAMCONNECT.php?BOX=192.168.1.%1,phy&CAM=192.168.1.%2.phy HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA ON"
  STOP
  ENDIF
  $ST L%1.dir W10

Event 2 - When a call request is answered, or a call is made or ended from the reception to the door station. A one second timer is set to avoid flicker.

Event Owner: Station w. UDP, Id: 2 - Stations w/Monitor
Event type: 08 - Conversation Outgoing
Subevent: 0
When change to: ON or OFF
When related to: Station w/UDP, Id: 1 - Stations w/Camera
Action: $ST L%1.dir
  IF %chg(1,0)
  EDO 1 "GET /cmd/CAMCONNECT.php?BOX=192.168.1.%1.phy&CAM=192.168.1.%2.phy HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA ON"
  STOP
  ENDIF
  EDO 1 "GET /cmd/CAMDISCONNECT.php?BOX=192.168.1.%1.phy HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA OFF"

Event 3 - If the timer is not stopped due to a continous video, then the connection is dropped.

Event Owner: Station w. UDP, Id: 2 - Stations w/Monitor
Event type: 21 - Event Timeout
Subevent: 0
When change to: ON
When related to: Station w/UDP, Id: 1 - Stations w/Camera
Action: EDO 1 "GET /cmd/CAMDISCONNECT.php?BOX=192.168.1.%1.phy HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: Keep-Alive\r\n"
  EDO 1 "Accept: */*\r\n\r\n"
  LOG "CAMERA OFF"

Related Articles

IP Desktop Master Station with Video Display - Configuration Guide