Design VoIP System

Hard45 min
1 / 30
understanding3 min read

Problem framing and VoIP scope

What a VoIP platform is and why SIP signaling plus media routing defines it

Problem framing and VoIP scope

A VoIP system carries voice calls over IP networks, letting applications and devices place and receive calls programmatically, including to and from the regular phone network (the PSTN). The fact that defines the architecture is the split between signaling and media. Signaling, done with SIP (Session Initiation Protocol), sets up, modifies, and tears down a call, the INVITE, ringing, answer, and BYE; media, the actual audio, flows separately as RTP packets. The platform sets up calls via SIP, bridges the two legs of a call, routes the RTP audio, and interconnects with carriers over SIP trunks through session border controllers (SBCs).

The spine is therefore: a control surface (an API and SIP signaling) that originates and receives calls idempotently, a call state machine driven by SIP responses (trying, ringing, answered, completed), a media plane that routes RTP audio between legs and to the PSTN, SIP-trunk interconnection to carriers via SBCs, webhooks that surface call events to the customer, per-tenant concurrent-channel governance, and call detail records (CDRs) for billing. State the framing up front: VoIP is signaling (SIP) plus media (RTP) with PSTN interconnection, and the hard parts are the call state machine, media routing, and carrier-grade reliability.

Key Highlights

  • VoIP carries voice over IP; interconnects with the PSTN (regular phone network)
  • Signaling (SIP) sets up/tears down calls; media (RTP) carries the audio separately
  • The platform bridges call legs, routes RTP, and interconnects via SIP trunks/SBCs
  • Spine: idempotent origination, SIP call state machine, media routing, webhooks, CDRs
Interview move
Open by separating signaling (SIP) from media (RTP). The platform sets up calls with SIP and routes audio with RTP; that split organizes the whole design.
Avoid
Conflating signaling and media. SIP controls the call; RTP carries the audio on a separate path. They scale and fail differently.

Section Rescue Kit

Buzzwords to use:

SIPRTP

Safe statements:

  • "VoIP is signaling (SIP) plus media (RTP) with PSTN interconnection."
  • "The hard parts are the SIP call state machine, media routing, and carrier-grade reliability."
Design VoIP System - System Design | WinJob | WinJob