2 ms·
Interesting. I'm trying to (in background mode) build an open source SIP video doorbell, and so far finding a good client that can work with raw video capture d
by cyberax 3y ago
Interesting. I'm trying to (in background mode) build an open source SIP video doorbell, and so far finding a good client that can work with raw video capture devices proved tricky. All the clients with video support need full X-Windows or Wayland stacks, which I most definitely don't want.
This seems to be exactly what I need!
Now, why did you have to write it in pure C?!? It's not a big deal for me, my VoIP devices are already in a separate VLAN without external access, but still.
- trzy 3y agoWhy would you not want it in a simple, portable language that's easy to build and deploy anywhere?
- anyfoo 3y agoBecause there are now relatively simple, portable languages that vastly improve on C's safety and virtually non-existing type system, in order to prevent a lot of easy but critical security issues. I say that as someone who's been writing C for decades, and still does very regularly.
- kreetx 3y agoIn my experience, it’s the developer that matters. A not-a-very-good-developer can produce buggy code/bad architecture in any of the strongly typed advanced type system languages, too.
- anyfoo 3y agoSo I take it you're still mostly writing your code in machine language (who even needs a macro assembler)? Or BCPL?
- otabdeveloper4 3y agoNo, they should have definitely thrown away their entire codebase and embarked on a serious migration project to proven industrial-grade solutions like Zig or Nim. (sarcasm)
- NavinF 3y agoWhat are your resource limits and threat model? I hate X11 and C as much as any other human, but let's be real: - If your hardware can decode video, it can probably deal with X11 - As you noted, security is easy if you never have to communicate with malicious devices. Don't "but still" me.
- cyberax 3y agoIt's not so much a threat model, but maintainability and reliability. I want to have as few dependencies as possible, and for the code to work with minimal to no changes for the next 10 years. Ideally, I would use something like HomeAssistant Operating System for the base, with my code running in a Docker container.
- jstanley 3y agoIf it's about maintainability and reliability, and not so much a threat model, why does the fact that your VoIP devices are already in a separate VLAN without external access mean it's not a big deal for you? > I want to have as few dependencies as possible, and for the code to work with minimal to no changes for the next 10 years. Then a C program sounds like an ideal choice!
- cyberax 3y ago> If it's about maintainability and reliability, and not so much a threat model, why does the fact that your VoIP devices are already in a separate VLAN without external access mean it's not a big deal for you? VLAN is what makes it not such a big deal. However, I want to offer the same solution to other people in our HOA, and I most definitely don't want to set up VLANs for each one of them. > Then a C program sounds like an ideal choice! Not really? No package management, for one thing.
- kelnos 3y agoLooks like the project started in 2010; there weren't many great options then if you wanted to build something portable, not to mention easily bindable in other languages. (And there are plenty of good rationales for not wanting to use C++.)
- deleted 3y ago[deleted]
- thebruce87m 3y agoPJSIP has python support: https://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial https://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial
- cyberax 3y agoIt's deprecated.
- numpad0 3y agoIf you're just receiving and sending video and a bell signal to/from static IP, What problem is SIP solving? I mean can't you just put up gstreamer to take video from an esp32cam?
- jeroenhd 3y agoI can see a benefit here, if you attach your SIP doorbell to a trunk you can configure it to do a full video call to your cell phone over the normal mobile network. I would personally try to hook into one of the many other apps I have in my phone that support video calling, but SIP shouldn't require an app if your carrier supports ViLTE.
- cyberax 3y agoI want to use SIP hardware phones as clients. And a SIP client running on my phone.
- varjag 3y agoWhat do you mean, most of the world runs on C (including the VLAN control agent in your OS).