Эта страница является
переводом страницы
CAME BPT. Перевод выполнен на 100%.
iRidium for CAME BPT
Setting CAME BPT SIP Video Intercom to Work with iRidium
documentation was last updated on 22.10.2021
Tested devices:
| Model |
Description |
Appearance |
|
CAME BPT MTMV/IP |
video module |
|
|
Setting CAME BPT video intercom
1 Connect power to CAME BPT MTM call panel
2 Connect the call panel to the same local network with your control panel
3 Set the call panel in PCS/XIP app
4 Go to this address http://192.168.1.5 in a browser of a control panel
5 Select INSTALLER in the "LOGIN MODE" field. The default password is 112233
6 Go to the Date and Time tab and set date, time and time zone. Then select Save button.
7 Activate a created SIP account - to do it, go to the Cedentials tab and then to the GENERIC SIP tab. Click the edit icon.
8 Select Enabled in the State field, set password and click save.
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 - enter the IP-address of the call-panel (default address -192.168.1.5 )
- Port - port of the call panel (always "5060" according to the SIP standard)
- 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 coder
- Codec PCMA - true, activation of G.711a audio coder
- Codec H264 - true, activation of H.264 video coder
Deactivate other coders (false)
3 Add graphi 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 graphic items 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 digital 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 to it the call of this script.
Demo project
The panel project contrains:
- a display, showing video from the camera of the call panel in real time
- a keyboard to dial a number,
- a call/answer button,
- a cancel button,
- a button to open the door,
- display of the current status,
- display of subscriber's data (name, number),
- volume settings of the speaker and the microphone of i3 pro panel.