An unofficial, read-only Hacker News reader. Join the beta →

Rvoip: VoIP stack in Rust (opens external site)

162 points by zerosegfaults 1 day ago | github.com | 39 comments on HN

Comments (39)

  1. No real comparison to any of the existing options?
  2. It's nice to see a Rust solution, most of the existing production ready ones are either in C or Go.

    Fun fact, you can have your own Twilio much cheaper if you use

    https://www.bulkvs.com/

    And something like

    https://github.com/emiago/diago

    or

    https://github.com/pilab-cloud/gobelisk

    Replies (3)
    1. Note that BulkVS is a partial replacement for Twilio, not a drop in replacement for all functions. They only cover USA/Canada and their least cost routing will have a higher reject rate (503 Route Advance) on outbound calls they cannot deliver for the price offered by BulkVS.
    2. i do not recommend bulkvs

      you get what you pay for

    3. why do you care if it's written in rust?
      Replies (1)
      1. More options in a modern language.

        Unlike most people here, I care less that it's in rust than that it's not in C/C++. There just aren't that many options when you want a compiled-to-metal memory safe language with fast startup and runtime.

  3. Complete is a little far fetched in the realm of VoIP, isn't it? I don't see FAX support ;)
    Replies (1)
    1. I also don’t see a module for “support team that overpromises before contract is signed and disappears before implementation” so it’s clearly not a fully comprehensive modern VOIP stack!!
  4. I wonder how this stacks up versus https://crates.io/crates/rsipstack
    Replies (1)
    1. Is that one also vibecoded AI slop where the meatproxy was so uninvolved (or doesn't understand what the AI is doing) that they let the LLM author the readme too?
  5. there used to be so many separate servers to install, but I think it's gotten so much more convenient
  6. Is there any benchmark results ? Like how does it compare to current existing systems ?
    Replies (1)
    1. There are benchmark results in the README. Just not comparing to other engines, so you'd have to bring your own data
  7. Any reason to use this over RustPBX?
  8. AI spam voice agents + VoIP = the death of traditional phones. Everyone is already ignoring most phone calls, this is the final nail in the coffin.
    Replies (4)
    1. It's vibe coded, so who knows if it even works.
    2. I don't think setting up Asterisk was very high bar for a spam operation
    3. See https://github.com/eisenzopf/bridgefu (which depends on rvoip it seems)

      It looks like you're pretty much spot on.

      Replies (1)
      1. It's pretty cool. I had to vibecode a module for baresip to drive it over a websocket and put it's PCM into a pipe to do something similar.

        Very interesting to do, used exactly zero times.

    4. You answer your phone? I havent in a year, gotta call on signal/discord even my own mother calls me on signal.

      Docter? Email me.

      Replies (1)
      1. I answer my phone and I have a landline, which is really SIP, but it has the "city" number and is stationary.

        There is occasional stuff, mostly government related.

        No, they don't want to talk to my AI agent when it picks up the phone.

  9. Hey Jonathan this is so legit. I'd love to contribute. Any low-hanging fruit to take a look at?
  10. This is a cool project. Thanks for sharing.
  11. How does this compare, to, say asterisk and rtpengine?
    Replies (2)
    1. its written in rust
      Replies (1)
      1. That’s a strange point of comparison. How does it compare to rsipstack?
    2. Kinda inferred from first sentence in description. "rvoip is a library, not a server you deploy next to your application." Basically unlike Asterisk & rtpengine that run standalone, rvoip is embedded directly into the app, providing telephony, media processing, etc. Now as to whether could've used asterisk/rtpengine code underneath rather making everything from scratch, it's probably to LLMs tendency to NIH, although can argue about "external dependencies and integration complexity."
  12. I still don't understand why language name has to be mentioned in Posts like this. Is this some form of marketing?
    Replies (5)
    1. religion
    2. Rust has a reputation of being safe, very light and pretty damn fast, so mentioning it makes sense. I doesn't mean that the AI coded safely but it's a selling argument for many.

      [edit] golang is probably almost as good and safe but that's where religion comes into play. I personally am technology agnostic.

      Replies (2)
      1. The comparison between golang and rust comes up a lot. Golang is certainly a capable language, but I think it's not filling the same niche that rust fills.

        While golang often is comparable to rust in a lot of scenarios, there's also quite a bit of a difference between the two to make this a non-religious choice based on technical merits and needs. For starters, golang comes with a runtime and a gc. This is an absolutely fine choice in a lot of places, notably when you start writing web/desktop components from scratch. It does, however, make it impossible to use in some places where rust is usable: Very small memory/cpu constrained devices, places where you need predictable (not necessarily fastest) performance, control over allocation/deallocation and most notably, places where you want to replace one component written in C/C++ with something memory-safe. Golang brings a runtime and as such you can't just embed go code into a C binary. With rust you can, it's one of the explicit design goals of the language and drives a lot of the design choices that went into it (for example the no GC approach to memory management)

        This also explains why it's interesting to mention the language: Rust caters to a specific set of programming language needs. If I have a need for the things that rust provides, then go isn't going to be a replacement. If I want a voip stack that I can integrate into a C application because I happen to have one, then I either need C, C++ or Rust (or anything else that compiles down to a plain object file)

      2. > Rust has a reputation of being safe,

        Rust is memory safe, that fact is widely accepted – certainly our Rust friends remind us of it at any opportunity. :)

        What Rust proponents are less willing to talk about is that Rust is still as exposed as any other language to whole classes of other potential vulnerabilities and generally insecure coding practices and architectures.

        Rust is also exposed to supply-chain attacks because of the nature of Rust people end up with a completely unvetted Cargo.toml as long as their arm ... which is frankly scary in anyone's book ! Achieving "minimal reasonable dependencies" in Rust takes hard work, blood sweat and tears that most Rust developers don't do, as evidenced by their lengthy toml files.

    3. Language matters. When creating a project in Rust (like almost any other language), I am much more likely to use a library written in That rather than one written in JavaScript or Cpp.
    4. Because it's the main differentiator. We already have c+, go, etc. It's a good starting point to know if it would be useful to me
    5. Because this is built as a library and you can pick and choose the parts you need to build a server. This is not meant to replace FreeSWITCH which is a full server with a opinionated config, module loading etc. This is a bot more bare bones.
  13. I wonder if this can be used to create a more modern "Hello, this is Lenny". The original with Asterisk was a pain to setup
    Replies (1)
    1. I added maybe 10 lines to my asterisk config for Lenny. Are you sure it wasn't somethong else?

      Or is there more than one Lenny now?

  14. Does it have a chance to be transpiled by the microsoft rust to plain and simple C transpiler? This idea is to compile it with cproc/qbe and dodge that crustc backend: that horrible c++ llvm.
  15. Fuck yeah, open source!