Actions

Difference between revisions of "IP Desktop Master Station with Video Display - Practical Examples"

From Zenitel Wiki

Line 21: Line 21:
 
|'''When related to''': || Directory Number, Id: 32
 
|'''When related to''': || Directory Number, Id: 32
 
|-
 
|-
|'''Action''': || [[IF/ENDIF|IF %chg(1,0)
+
|'''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 "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"

Revision as of 16:55, 3 January 2013

!!!UNDER CONSTRUCTION!!!

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

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"