I have finally posted my project I mentioned above. I discuss it in the following thread:
Hi, did anybody accomplish this with only self-signed certificate on FreePBX side? I have HA with NabuCasa (so shouldnât be an issue here) and fully working FreePBX (WebRTC client via UCP works as well). But no matter what i try, iâm getting only constant Loading SIPPhone
in browser developer tools, sometimes doordroid-card.js?v=0.0.1:198 Uncaught TypeError: Cannot read property 'offsetParent' of null
.
Or have you saw such behaviour with a trusted certificate as well and iâm only missing something? Thanks!
Looking at the code of doordroid-card.js, this offsetParent is within the isVisible routine.
Have you tried to change isVisible to remove the offsetParent calls as a test? Just let the routine return true.
This is not a solution but to check whether you are chasing a red herring or notâŚ
Maybe that will give you some clues.
I am using an official cert from cloudflare. If you have your domain name, it is free and valid for 15 years.
Unfortunately removing that part doesnât seem to change anything.
Iâll probably have to look for a demo server online with trusted cert to test my client against to find out whether itâs clientâs or my FreePBXâs fault.
I hadnât realised that. Is there a reference for it?
Yes, there is: https://www.fully-kiosk.com/en/#remoteadmin
You can e.g. load a URL, set screen brightness, get battery level,âŚ
A very good REST interface!
hi folks, you look very knowledgeable on SIP/PBX systems (and I am not!) and wondered if you could possibly provide some guidance.
Iâm looking at using a dahua Doorbell as you can specify a SIP server, and someone has written an MQTT component for HA to pick up its actions.
Based on the above it seems I can install the doorbell, the MQTT component, FreePBX docker and lovelace card.
It seems based on this manual, I am able to configure the doorbell to use a SIP server (Asterisk) and assign it an extension/number.
Then when the doorbell is rung it will start a call (either specified on the device to group call, OR, on the SIP server) so that the extensions âringâ (iâm thinking then to use the MQTT dahua component to pick up the button press, and the use browser_mod.popup to open the lovelace doordroid.js card on the devices - lineageOS wall tablets and phones).
So now a lovelace card pops up on the wall tablets, or phones.
At this point I will see and hear who is at the door and then the button on the card allows me to talk back to the doorbell (I think this will only work on Android however) - so I may need a parallel process to call a SIP client app on the iOS phones in the house.
I have a few questions though:
- How an earth do you configure FreePBX? Iâve read a bunch of materials and still canât figure out if I need to register it OR given its only using a bunch of extensions internally and HA is doing the lifting to the outside world via the UI.
- the extensions mentioned SIP Doorbell, android tablet and HA integration are a manual .conf file, but FreePBX is all GUI based.
- How does this work externally (iâm using NGINX with a reverse proxy) but assume the call is actually between the lovelace doorcard and the doorbell - and its HA that is bringing the audio from the phone into my network? (the tablets are all internal).
Any more details or if you have come across some guides to get someone up to speed would be hugely appreciated (there is some serious depth in the PBX/SIP world and its a little confusing/daunting)
ahhh it seems in the FreePBX docker the pjsip.conf
file is broken up into:
pjsip.transport.conf & pjsip.transport_custom.conf
pjsip.aor.conf & pjsip.aor_custom.conf
pjsip.auth.conf & pjsip.auth_custom.conf
etc
If i manage this I may pull a guide together using FreePBX
Correct. Most of the config is done through GUI. But, there are âstuffâ that you can add into text files that are loaded and not erased by the GUI.
First step, create an extension for your dahua. The first hurdle is to be able to register the doorbell with the server. When done, make a call (that is press the doorbell, I guess) on the dahua. Putting your PBX in debug mode asterisk -vvvvvvvv
and things should be seen on your screen.
Second step, with a normal softphone, register it on the PBX. Then call again from dahua to this extension. I donât know how in dahua you configure the extension to dial. If OK, it should ring on the softphone.
Third step, have video and audio between the doorbell and the softphone. You will probably have to select the âcorrectâ codec. Again, trial and error here.
Fourth step, replace the softphone with the lovelace card on HA. This was for me the hardest part.
Asterisk is rather difficult but you have plenty of logs to play with. With lovelace, apart from the chrome debug console you are blind. Or at least, I am!
So, you will need three extensions:
- doorbell
- softphone (used for testing only in my case)
- lovelace card
Have fun!! I must say this was quite a challenging stuff to do, but the result is pretty cool.
GV
Is it possible to run freePBX on a venv? Canât find anywhere with instructions on how to get it up and running this way. Any help is much appreciated.
I donât think so⌠venv seems to be only for python stuff with my (very limited) understanding of venv.
You can use it in an LXC container, with docker or a ârealâ VM.
FreePBX uses Asterisk and Asterisk is C codeâŚso no, venv canât be used as its only for a Python environment.
I love this project. I built the DoorPI, but I wasnât happy with how wide the camera view was and could make a professional enough cover, so I have now purchased the GDS 3710, wow, what a great device. Sorry for my ignorance, but I am getting the message in my lovelace card âcamera not definedâ. I assumed I have to define it in the doordroid card. I have a camera entity, in hassio entities and it works fine, but when I put that into the doordriod card it doesnât work. I would appreciate any assistance.
Thank you @greengolfer and @rdehuyss for this amazing project.
Can you copy the part of your configuration.yaml where the camera.grandstream_door_camera is defined?
Are you able to see the camera in another card?
@greengolfer, thank you for your quick reply.
Yes I can see the camera in a picture glance card.
My config is
I also have streem in the config file.
Can you try a simpler name? Here you are relying on HA âmagicâ to change G to g and replace " " with â_â. Try with something like gds. Not fancy but no hidden rewriting.
Not sure it is the problem though, but worth a try. IMHO.
Thank you. I have changed the name to gds.
I think the problem was more simpler. I had to delete my old doorpi installation and I got past that message. I am having a syntex issue with the camera name in doordroid card.
Sorry, as explained above my knowledge in javascript is close to null⌠I donât know what it means.
Have you tried to clear the cache of the browser and all stuff like that?
I think the Java code should be (or originally was) something like:
setConfig(config) {
if (!config.camera_entity) {
throw new Error('You need to define a camera entity');
And in your lovelace config try something more like:
cards:
- type: 'custom:doordroid-card'
camera_entity: camera.gds
style: |
ha-card {
display: block;
margin-left: auto;
margin-right: auto;
width: 88%;
}