Skip to main content

Configuring Dahua SIP video door stations for use with iRidi

Tested devices​

ModelDescriptionAppearance
DahuaVTO1210C-Xoutdoor video door stationDahua_vto1210c-x.jpeg
DahuaVTO2111D-WP(433)outdoor video door stationDahua_vto2111d-wp433.jpg

Configuring Dahua video door stations​

Note

Settings may vary slightly depending on the video door station model and firmware version.

General settings​

  1. Sign in to the video door station's web interface using the login and password (by default, admin and admin).

SIP_Dahua_1210_web00.png

  1. On the Local Config > A&C Manager tab, set the digital interface TCP/IP as the operating interface.

SIP_Dahua_1210_web01.png

  1. Configure the video door station's IP addresses as required by the local network of your SIP system.

SIP_Dahua_1210_web08.png

  1. Configure the door-opening control parameters.

SIP_Dahua_1210_web02.png

  • Unlock Responding Interval: the minimum interval between door openings (in seconds),
  • Unlock Period: the time the lock remains unlocked (in seconds),
  • Open Door First Command: the combination that opens the lock (finish entering this combination with the "#" character).
  1. Configure the video stream parameters.

SIP_Dahua_1210_web10.png

  1. Configure the audio settings.

SIP_Dahua_1210_web11.png

Configuring the built-in SIP server​

Dahua video door stations have a built-in SIP server. It lets you set up a simple SIP system without additional devices or special software. You can also use an external SIP server .

  1. Reset all settings under Network Config > SIP Server Config to their defaults (using the Default button).

  2. Enable the built-in SIP server.

SIP_Dahua_1210_web09.png

  1. Restart the device.

  2. Configure the video door station's connection to its own SIP server (when the built-in SIP server is enabled, the station is always assigned the number 8001).

SIP_Dahua_1210_web06.png

Note

If the connection is successful, the VTO1210C-X video door station display should show the status Online.

  1. Configure subscriber connections to the SIP server.

SIP_Dahua_1210_web07.png

Configuring operation with an external SIP server​

  1. The built-in SIP server must be disabled. Specify the access parameters for the external SIP server:

SIP_Dahua_1210_web12.png

  1. Restart the device.

  2. You can change the door station's number on the LAN Config tab.

SIP_Dahua_1210_web13.png

  1. Restart the device again.

Working in iRidi Studio​

  1. Create a Panel Project.
  2. Add the SIP driver and configure it.

SIP1.png

Note

The most important settings are highlighted in red.

  • Host - enter the door station's IP address (192.168.1.5 by default)
  • Port - the door station's port (under the SIP standard, always 5060)
  • SIP ID - the username of the SIP account activated in step 7 of these instructions
  • Password - the password of the SIP account activated in step 7 of these instructions
  • Use SIP TONE - true: generate SIP tone-dialing messages
  • Use DTMF TONE - false: do not generate standard tone-dialing messages
  • Codec PCMU - true: enable the G.711μ audio codec
  • Codec PCMA - true: enable the G.711a audio codec
  • Codec H264 - true: enable the H.264 video codec

The other codecs should be disabled (false)

  1. Add graphical items to the panel screen and configure them.

came_bpt_9.png

  1. Add a script to the project:

outdoor_station_number = "0101010100"; // topological code of IPerVoice panel
var SIP = IR.GetDevice("SIP"); // name of SIP driver
var action = "CALL"; // default action
ButtonAction = IR.GetItem("Page 1").GetItem("Button_action");
LabelName = IR.GetItem("Page 1").GetItem("Label_name");
LabelNumber = IR.GetItem("Page 1").GetItem("Label_number");
SwitchVideo = IR.GetItem("Page 1").GetItem("Switch_video");

IR.AddListener(IR.EVENT_START,0,function()
{
// display the SIP video
IR.GetItem("Page 1").GetItem("Video").GetState(0).Image = "sip_image://";
});

IR.AddListener(IR.EVENT_TAG_CHANGE, SIP, function(name, value) {
if (name == "STATUS") {
var flagReady = (value == "On Hook..." || value == "Incoming Call...");
ButtonAction.Enable = flagReady;
var flagTalk = (value == "Talking...");
IR.GetItem("Page 1").GetItem("Button_door").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button1").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button2").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button3").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button4").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button5").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button6").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button7").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button8").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button9").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button0").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button_asterisk").Enable = flagTalk;
IR.GetItem("Page 1").GetItem("Button_octothorp").Enable = flagTalk;
var flagConnect = (value == "Dialing..." || value == "Trying..." || value == "Ringing..." || value == "Talking..."
|| value == "Not Found..." || value == "Not Acceptable..." || value == "Not Available..." || value == "Service Unavailable...");
IR.GetItem("Page 1").GetItem("Button_cancel").Enable = flagConnect;
SwitchVideo.Enable = !flagConnect;
if (value == "Incoming Call...") {
action = "ANSWER";
LabelName.Text = SIP.GetFeedback("INCOMING CALL NAME");
LabelNumber.Text = SIP.GetFeedback("INCOMING CALL NUMBER");
}
if (value != "Incoming Call..." && value != "Talking...") {
action = "CALL";
LabelName.Text = "---";
LabelNumber.Text = outdoor_station_number;
}
var flagShow = (flagReady || flagConnect || flagTalk);
LabelName.Visible = flagShow;
LabelNumber.Visible = flagShow;
}
});

function Talk() {
SIP.SetFeedback("NUMBER", outdoor_station_number); // when calling number is required
SIP.Set(action, SwitchVideo.Value); // call or answer, audio or audio+video
}

  1. Configure the graphical items to interact with the SIP driver and the script.

Configuring the door-opening button​

Pressing the button on the door station initiates a call. To open the door, you need to send a numeric code that can be set in the door station settings ("*50" by default)

  1. Create a new script
  2. Add the following to it:

function SIPsendtone1(){
var SIPdevice1=IR.GetDevice("SIP");
SIPdevice1.Set("SEND TONE", 10); // send “*”
SIPdevice1.Set("SEND TONE", 5);// send “5”
SIPdevice1.Set("SEND TONE", 0);// send “0”
}

  1. Create a button and bind it to a call to this script

Demo project​

Tip

Download demo project

The Panel Project includes:

  • a display showing live video from the door station's camera,
  • a keypad for dialing a number,
  • a call/answer button,
  • a cancel button,
  • a door-opening button,
  • a current status display,
  • a display of subscriber details (name and number),
  • speaker and microphone volume settings for the i3 pro panel.

SIP_Dahua03.png