Live data from Hacker News

Baresip – An Open Source modular SIP User-Agent with audio and video support

github.com

21–30 of 57 posts

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#21
post #12

Earlier quoted context omitted.

Last I worked with telephony (around 2010), IIRC we recieved calls over 3G network as SS7/H323 using Dialogic hardware and converted them on the fly to SIP as they entered our systems. The whole PBX was running on SIP using Asterisk.

I'm really intrigued. Is it possible to get video calling working with mobile networks' own video calling support over LTE? I could never find how it's done.

I managed to get video working between 3G and SIP, so I expect so.

I developed 3G video phone dating in 2010.

I recall bambuser also used to have a live video streaming over 3G app around that time.

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#22
post #18
post #11

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…

Why would you not want it in a simple, portable language that's easy to build and deploy anywhere?

Because 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.

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#23
post #19
post #11

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…

What 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.

It'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.

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#24
post #11

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…

[deleted]

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#25
post #23
post #19

Earlier quoted context omitted.

What 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.

It'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.

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?

> 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!

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#27
post #12

Earlier quoted context omitted.

Last I worked with telephony (around 2010), IIRC we recieved calls over 3G network as SS7/H323 using Dialogic hardware and converted them on the fly to SIP as they entered our systems. The whole PBX was running on SIP using Asterisk.

I'm really intrigued. Is it possible to get video calling working with mobile networks' own video calling support over LTE? I could never find how it's done.

I've not done that personally, but I'd have a look on the freeswitch forums to see if someone on there has already done it.

I have had the free 3CX sip client on an android mobile, using a UDP vpn back to a freeswitch server which was connected to the UK phone system. Proof of concept thing.

Because of the nature of the mobile data, which is like bursts of data, it made it hard to have a conversation even around midnight and 1am when cell traffic volumes are low.

I was told UK Telco's give voice data priority as this needs to be realtime and then other data has lower levels of priority making it hard to have a reliable stream of data.

FYI, 56K is the minimum standard for voice calls, although with 4G and beyond, its possible to hear the higher bitrate protocols being used on the main mobile networks, as its not so muffled, like someone turning up the high end frequency's on a graphic equaliser, and they are fully down with the 56k protocols.

I dont know what the minimum video protocol bitrate would be, but I did find this which might be useful. > H.264 will only consume around 10 kbps with around 2 fps in 176x144.

When Skype first came out, it was peer to peer, so as a proof of concept to test the new 3G network I did manage to maintain a voice call for an hour which was impressive, but also shows that mobile networks can maintain the mobile data streams if its not encrypted inside a VPN in the UK.

Re: Baresip – An Open Source modular SIP User-Agent with audio and video support

#30
post #11

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…

PJSIP has python support: https://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial
Post reply on HN