C-Werk supports connecting devices via the Chinese standard GB/T28181. This standard is based on SIP over UDP (and over TCP since GB/T28181-2016). The GB/T28181 uses the following protocols over SIP:
This allows receiving the status of sensors, events from detectors, PTZ and relays control, access the built-in archive of the IP device (make sure to set the correct device time zone in the C-Werk), etc. within the SIP session. Single-channel and multi-channel devices in single-stream mode and working with the UDP and TCP transport protocols is also supported.
At the same level of the OSI model, the RTP/RTCP protocol also works in parallel with the SIP protocol, which makes it possible to use the following functions:
Configuration of IP devices connected via GB/T28181 is performed through the web interface of the devices. Settings are not sent from C-Werk to the device.
Before connecting a camera via this protocol to C-Werk, perform the following steps to configure SIP on the device:
Note.
Important!
No more than one SIP server can be used for IP devices connection via the GB/T28181 protocol. This means that several Video Capture Device objects with GBT28181 type can be created in the C-Werk hardware tree, however, the part of the address after @ must match for all of them. The server ID, local address, external address, and port must be the same for all devices. If at least one parameter is different (for example, the local IP address is not set for some device when it is set for other devices), then such a device will not start.
Note.
After configuring the device as described earlier, add it to C-Werk as follows:
In the IP address field specify the value of Device ID parameter set during IP device configuration (2). The following additional parameters can be specified optionally as follows:
[gbt://]deviceID[/videoPort]@serverID[-serverLocalIP[/serverExternalIP]]
OR
[gbt://]deviceID[/videoPortFirst-videoPortLast]@serverID[-serverLocalIP[/serverExternalIP]]
where:
deviceID is the Device ID parameter;
serverID is the identifier of the C-Werk Server generated according to the same rules as the IP device ID (see above);
videoPort is the port for receiving video;
videoPortFirst − videoPortLast is range of ports for receiving video;
serverLocalIP is the local IP address of the C-Werk Server, which sets the network interface on which the Server should be available;
serverExternalIP is the global IP address of the C-Werk Server; this parameter is in use when the C-Werk Server is behind the gateway. In this case, this IP address is specified as the SIP Server IP address in the IP device settings.
Examples.
34020000001320000008@34020000002000000001
34020000001320000008@34020000002000000001-10.0.40.246/113.125.160.58
34020000001320000008@34020000002000000001-10.0.40.246
34020000001320000008@34020000002000000001-/113.125.160.58
34020000001320000008/50200@34020000002000000001
34020000001320000008/50200-50210@34020000002000000001-10.0.40.246
In the Port field, enter the local port number that the C-Werk Server shall listen for receiving messages from the IP device (3). Usually this is the default SIP port: 5060.
Note.
The IP device SIP port is detected automatically.
Connection of the camera via GB/T28181 is now complete.