NewsCrawler.org

rvoip: a Rust library for SIP, RTP and voice-AI calls in one stack

Open-source Rust SIP/VoIP stack: SIP, WebRTC, SRTP and AI voice agents behind one API. RFC 7502-benchmarked. - eisenzopf/rvoip
Image: github.com

rvoip is a Rust library, not a server, for building communications applications. It covers SIP[1], RTP[2], WebRTC, QUIC, WebTransport, WebSocket, Media over QUIC and voice-AI agents in one call model, and includes the signalling, media and codecs itself, so no separate SIP server, media server or RTP engine has to be installed. The examples run on a laptop with only Rust installed, and the release checks include interoperability tests against Asterisk, FreeSWITCH, Jambonz, Kamailio and OpenSIPS.

The project reports a benchmark on one AWS c8i.4xlarge cloud VM (16 vCPU, 8 cores, Intel Xeon 6, 32 GiB) running a single rvoip process, measured with the RFC 7501/7502 method. At twice its maximum CPS[3] (calls per second), it keeps accepting calls at the max rate, rejects the excess with fast 503 responses, and recovers when the load drops. The rvoip endpoint was measured as a terminating endpoint that answers calls and echoes media, while relaying B2BUA[4] mode, registrations, transcoding, WebRTC and failover have not been measured yet.

The workspace contains 47 crates. Telephony applications start with rvoip-sip (version 0.5.1 in the example), and other uses go through the rvoip facade with Cargo features.

Repository rvoip github.com

Open-source Rust library for building telephony and voice-AI apps, covering SIP, RTP, WebRTC and codecs in one stack.

Stars: 390Forks: 37License: MITUpdated:

Read the original github.comDiscussion

Discussion

Commenters welcomed a Rust option, since most production-ready VoIP servers are written in C or Go. Several asked how it compares with Asterisk, rtpengine, RustPBX and rsipstack, and noted that the page has no such comparison. One commenter asked about FAX support, and another worried that AI voice agents will make phone calls even less trusted.

Sources

Published: First seen: Читать по-русски

Open as a page