Hope for somebody that writes for a step by step, simple, tutorial. Too many pieces to make work and unfortunately have little time (tried in the past but it takes too much time, at least for me)
At the moment using the Hik-connect addon (cloud which I use for Telegram notification and door unlock)) and original Hik-connect android app which is totally unreliable.
Video feed, two way audio, and fast access to the door unlock is the goal (like the official app if it would work reliably)
If I finish my project, I may make a step by step guide, for my own documentation and use by other people as well.
The first part was very easy, getting call status and unlocking door.
Video feed in HA can be done with no addon at all, the camera provides standard onvif rtsp stream, so you can get it with various ways in a card (for example, I use Frigate for person detection and I get the stream from there, you can also get webrtc card as well).
Two way audio is the final goal for me, and notifications as well, actionable if possible…
Hik connect is crappy!
Holy moly! After having found with BatchConfigTool a way to enable cgi, I am getting now at least the call status message via Terminal command (I know this status will always stay idle, but anyway).
{
“CallStatus”: {
“status”: “idle”
}
}%
Unfortunately with your plugin still “NET_DVR_Login_V30 failed, error code = 29”. But maybe with 1.6 or so it will suddenly work
Indeed. Would it make any difference if I would try your former modified kd8003 firmware for RPI users? (can’t find it anymore…) Or is this definitely not necessarily anymore?
Tried to make a start with SIP and probably hitting on a wall…My indoor station, probably doesn’t have SIP settings…Or I can’t find them in IVMS… Tried to change from proprietary to SIP Protocol, no new settings appeared. Any idea?
No idea, maybe your indoor doesn’t allow sip settings for external PBX…
You can register asterisk as an extension to your indoorw that uses the hik propertiary protocol, should work… Asterisk acts as an extension, so the call gets forwarded from indoor to asterisk…
Edit: I also see in your screenshot “sip server settings” , maybe you can change something there?
You need to choose between:
Setting up sip settings on all devices, but you loose early video in indoor stations
Or
Setting up asterisk as an extension on your indoor, so call gets forward, gives you still early video, and if asterisk is down, system will still work, including hikconnect
As you described, SIP server settings is to add settings for what SIP server should the device be added to as an extension. So that would take me to your first scenario, where Asterisk is the SIP server, and all devices register there as extensions, with the problem of losing early video access.
The second option, adding asterisk as an extension, probably can’t be achieved with this device I have, because it probably can’t act as a master station and register Asterisk as an extension.
I will look more into it again today, maybe I could trick it if I figure how Hikvision devices register between each other, adding Asterisk as a fake Hikvision device…
if your indoor station can handle extensions, then the second option shoudnt be an issue, i think all models do support extensions, up to 5 indoor panels ?
You need to add first the extension with some random serial , then you can register Asterisk as an extension, it will be an authbound trunk in asterisk…
Some indoor stations expect also the SN in the register packet, its a few lines of extra XML, if you receive an 404 while regsistering, then you can make use of my register script, the script is purely used for registering… the invite itself will be send to asterik, that will act then as trunk again, but based on IP AUTH instead of user/pass AUTH
Can you please write what firmware version is your indoor station, and what version is your IVMS ?
Because I have KH 6320 WTE1, so it should be there, but it isn’t!
EDIT: OK I probably have to configure my indoor station again, I looked at this video and there is a setting in the config wizard to enable SIP:
Hi, not for the moment , but you can fork my project and just add your own GitHub then as a second addon repository
For the sip2rtsp , what is it that you don’t understand? I shared info about setting up Asterisk, it’s offxourse not asterisk itself, it’s just helpfull info about how to setup asterisk as a trunk (acts as indoor extension)