deniz.in

Markets

Weather

Loading weather

· via Hacker News – Front Page (native)

Rvoip 0.5 packs SIP, RTP, WebRTC and voice-AI agents into one Rust library body_placeholder

Version 0.5 of the Rust VoIP library rvoip combines SIP signalling, RTP media, WebRTC, Media over QUIC and voice-AI agent plumbing in one workspace, and reports over 8,000 signalling calls per second in self-published benchmarks.

Rvoip 0.5 packs SIP, RTP, WebRTC and voice-AI agents into one Rust library
body_placeholder

Rvoip, an open-source communications stack written in Rust, has shipped version 0.5 with the goal of collapsing what normally takes several deployed servers — a SIP proxy, a media server, an RTP engine — into a set of crates that an application links directly. According to the project's GitHub repository, which reached the front page of Hacker News on 26 November, signalling, media, codecs, NAT traversal, security and the conversation model all live inside the workspace, so a call goes from application code to the network without any separately installed telephony infrastructure.

A library, not a server

The project positions rvoip as a library rather than a server you deploy next to your application. The workspace contains 47 crates, but developers name only one in their own Cargo.toml; the rest are internal layers pulled in as dependencies. The core product is rvoip-sip, aimed at SIP phones, PBXes, IVRs, registrars, proxies, B2BUAs and trunk gateways, and the project says it is the only crate carrying a signed interoperability attestation. A facade crate, rvoip, re-exports that core as rvoip::sip and adds a shared orchestrator plus optional transports and extensions behind Cargo features, grouped into bundles such as bundle-carrier-sip, bundle-browser-gateway and bundle-ai-conversation. Operational extensions — Keycloak, LDAP, Redis, Postgres vCon storage, SAML, SCIM, WebAuthn, STIR/SHAKEN and IMS AKA — ship as separate crates added only when an operator actually runs those backends.

The quickstart runs entirely on loopback: with nothing but Rust installed, an example endpoint answers, dials and hangs up a call with no PBX, account or network setup. From there the examples directory steps through microphone audio, registration to a PBX, hold and DTMF, transfers, SRTP and TLS, an IVR, a B2BUA, and finally browser and voice-AI gateways. Developers upgrading from 0.3 get a migration guide with before-and-after code for every breaking change.

The benchmark numbers, and their caveats

The project published performance figures for a single rvoip process on one AWS c8i.4xlarge instance (16 vCPU, 32 GiB, Intel Xeon 6), measured with the RFC 7501/7502 benchmark, where a maximum call rate means zero failed calls across trials of at least 180 seconds and 50,000 attempts. In signalling-only tests it reports 8,348 calls per second over SIP/TLS and 8,256 over SIP/UDP — roughly 520 and 515 per vCPU — with a p50 session-setup delay of 1 ms and p99 of 6 ms measured at 90% of maximum load. Adding G.711 media drops throughput to 1,124 CPS with TLS and SDES SRTP, or 1,204 CPS with plain UDP and RTP, which works out to roughly 11,200 and 12,000 concurrent ten-second calls. The project itself notes that those concurrency figures are derived by multiplying call rate by call length rather than measured, and that long-call capacity — where SBC datasheets usually quote concurrency — has not been tested.

More caveats come straight from the documentation: the test machine was a cloud VM, not an appliance; rvoip was measured as a terminating endpoint that answers and echoes media rather than a relay handling two call legs; G.711 was passed through without transcoding; and B2BUA/relay mode, registrations, transcoding, WebRTC (DTLS-SRTP) and failover were not measured at all. On the positive side, the project reports that under twice its capacity the process kept admitting calls at its maximum rate, turned away the excess with fast 503 responses, and recovered cleanly once load subsided. Interoperability against Asterisk, FreeSWITCH, Jambonz, Kamailio and OpenSIPS is checked as part of the release process, though only for the rvoip-sip crate.

Voice-AI and agent paths

The 0.5 release leans hard into the voice-AI use case. A server that accepts both SIP and WebRTC browser callers uses the facade crate with the app feature; SIP or WebRTC callers talking to hosted Vapi agents enable app plus vapi; teams running their own ASR, TTS and dialog pipeline — with recordings and signed vCon documents — use the voip-3 feature. Separate crates cover Amazon Connect A2A callers bridged to external agents (rvoip-amazon-a2a), SIP calls delivered to Amazon Connect agents (rvoip-amazon-connect), media fan-out over Media over QUIC (rvoip-moq) and a client SDK for native, mobile or embedded use (rvoip-client). A JavaScript and Node WebSocket control client exists experimentally, with TypeScript declarations, but the package has not yet been published to npm.

Why it matters

Most voice infrastructure today is assembled from deployed servers — an Asterisk or FreeSWITCH media stack, a Kamailio or OpenSIPS proxy, glue code between them — which makes telephony a systems-integration project before a single line of application logic gets written. Rvoip's bet is that a memory-safe, single-vendor dependency tree can replace that assembly, the way database drivers and HTTP servers long ago stopped being separate deployments. That bet is particularly pointed right now: voice-AI agents need to bridge browser WebRTC, SIP trunks and LLM pipelines simultaneously, and a library that already models all of those under one call model removes a large chunk of integration work. The benchmarks are self-published and notable gaps — WebRTC performance, relay mode, registrations — remain unmeasured, so carriers will want independent verification. But the breadth of the stack, the release-gated interop evidence and the per-vCPU call rates make this one of the more credible attempts yet to move a full VoIP platform into library territory.

  • #rust
  • #voip
  • #sip
  • #webrtc
  • #open-source

Related posts