Эта страница является
переводом страницы
SIP Dahua. Перевод выполнен на 100%.
Setting Dahua SIP Video Intercom to Work with iRidium
Tested Devices
| Model |
Description |
Appearance |
|
Dahua VTO1210C-X |
outside videophone panel |
|
|
Dahua VTO2111D-WP(433) |
outside videophone panel |
|
|
Setting Dahua Videophone Panels
Settings can be slightly different depending on the model and the firmware of videophones.
General Settings
1 Go to the web-interfaсe of the videophone panel and enter the login and password (by default they are admin and admin).
2 Enter TCP/IP interface as the working interface in the Local Config > A & C Manager tab.
3 Set IP addresses of the videophone panel as it is required for the network of your SIP system.
4 Set parameters to control opening the door.
- Unlock Responding Interval: minimal interval between door openings (in seconds),
- Unlock Period: time to unlock the lock (in seconds),
- Open Door First Command: combination opening the lock (the last symbol in this combination must be "#").
5 Set parameters of the video stream.
6 Set sound parameters.
Setting Built-in SIP server
Videophone panels by Dahua have a built-in SIP-server. You can built a simple SIP-structure using this sever without additional devices or software. You can also use: external SIP server.
1 Set Network Config > SIP Server Config to deafult settings (Default button).
2 Activate built-in SIP server
3 Reset the device.
4 Set connection of the videophone panel to the built-in SIP server (when the built-in server is activated a panel always gets 8001 number).
If connection is successful, Online status is displayed on the display of VTO1210C-X videophone.
5 Set connection of subscribers to the SIP server.
Setting External SIP server
1 The built-in SIP server must be turned off. Set access parameters to the external SIP server:
2 Reset the device.
3 The number of a panel can be changed in LAN Config tab.
4 Reset the device again.
Working in iRidium studio
1 Create a panel project.
2 Add SIP driver and set it.
The most important settings are marked with red.
- Host - the IP address of the call panel (default is 192.168.1.5).
- Port - the port of the call panel (according to the SIP standard, always "5060")
- SIP ID - username of the SIP account activated in step 7 of this manual
- Password - password of the SIP account activated in step 7 of this manual
- Use SIP TONE - true, generate SIP messages of tone dial
- Use DTMF Tone - false, do not generate regular messages of tone dial
- Codec PCMU - true, activation of G.711μ audio codec
- Codec PCMA - true, activation of G.711a audio codeс
- Codec H264 - true, activation of G.711μ audio codec
Deactivate other codeсs (false)
3 Add graphiсal items to the project and set them.
4 Add the following 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
}
5 Set the graphical item to interact with the SIP driver and the script.
Setting a button to open the door
When a button on a call panel is pressed, a call begins. To open the door, a digital code must be sent, it can be set in the settings of the call panel (default code - “*50”)
1 Create a new script.
2 Add the following to it:
function SIPsendtone1(){
var SIPdevice1=IR.GetDevice("SIP");
SIPdevice1.Set("SEND TONE", 10); // отправка “*”
SIPdevice1.Set("SEND TONE", 5);// отправка “5”
SIPdevice1.Set("SEND TONE", 0);// отправка “0”
}
3 Creatre a button and assign the call of this script to it .
Demo project
The panel project contains:
- a display where video from the panel camera is displayed in real time,
- a keyboard to enter numbers,
- call/answer button,
- cancel button,
- button to open the door,
- displaying the current status,
- displaying information about the subscriber (name, number),
- setting the volume of the speaker and the mic of i3 pro panel.