Foundations

Voice over IP in 60 seconds.

Every virtual number runs on Voice over IP: instead of a dedicated circuit holding your voice for the whole call (the old telephone way), your voice is chopped into tiny packets, each labeled with its destination, and fired across the same internet that carries your email. At the far end they’re reassembled, in order, fast enough that you never notice.

Two protocols do the heavy lifting, and keeping them straight unlocks everything else in this guide:

  • SIP (Session Initiation Protocol) is the signaling — the language devices use to say “I want to call you,” “ringing,” “they hung up.” Think of it as the postal service’s addressing system.
  • RTP (Real-time Transport Protocol) is the media — the actual voice packets flowing both ways once the call is up. That’s the mail itself.

Signaling and media are deliberately separate. A call can be re-routed, put on hold, or transferred by manipulating the SIP signaling while the RTP stream just keeps flowing — which is exactly what makes features like forwarding and hunt groups possible.

Signaling

SIP registration: your device checks in.

Before your number can receive anything, your device has to tell the platform where it is. Your IP address changes constantly — home Wi-Fi, office network, mobile data — so the platform can’t just remember it. Instead, your app registers, typically once an hour:

Sequence diagram of SIP registration
REGISTER → challenge → authenticated REGISTER → 200 OK: the handshake that keeps your number reachable.

The 401 challenge isn’t an error — it’s digest authentication, the server asking “prove you’re really this subscriber” before it believes the location update. Without it, anyone could register your number to their device. This handshake is the quiet security foundation of the whole system.

Signaling

Call setup: from INVITE to RTP.

Press “call” and a precise little dance begins. Each message has a job:

SIP call setup message sequence
Six messages stand between “call” and conversation — and they usually complete in under a second.

A detail worth knowing: the 180 Ringing you “hear” is generated locally by your phone — the network just sends the message. And the two 200 OK / ACK messages at the end are a handshake confirming both sides agree the call exists, which is why billing starts there, not at the first ring.

Media

Voice becomes packets.

Once the call is up, your microphone’s analog signal is sampled thousands of times per second, compressed by a codec, sliced into ~20-millisecond chunks, and each chunk becomes an RTP packet. The famous codecs:

  • G.711 — the old telephone standard, 64 kbps, zero compression, sounds like a phone call because it is the phone-call sound.
  • G.729 — 8 kbps, heavily compressed, the workhorse of bandwidth-starved links.
  • Opus — the modern open codec, scaling from 6 to 510 kbps, carrying everything from WhatsApp calls to studio audio. This is what “HD voice” usually means.
Diagram of voice encoding into RTP packets
Sample → compress → packetize → transmit: a voice call uses less data than loading one photo.

Packets travel over UDP, not TCP — deliberately. TCP retransmits lost packets, which is perfect for files and terrible for live voice: by the time a retransmitted packet arrived, the conversation would have moved on. Better to drop 20 milliseconds of audio (inaudible) than to delay everything (infuriating). The receiving side’s jitter buffer smooths out packets that arrive slightly early or late.

Supply chain

The provisioning chain: how a number gets to you.

Phone numbers are a regulated public resource. National regulators own each country’s numbering plan and allocate blocks to carriers; carriers lease numbers to platforms like esimgomobile; platforms let you pick one and activate it in software. When you “buy” a virtual number, you’re really renting it down this chain — which is why identity verification is part of signup in most countries. The regulator wants to know who holds each number.

Diagram of the number provisioning chain
Regulator → carrier → platform → you: every virtual number is leased down a regulated chain.

This chain is also why porting works: because numbers are allocated independently of providers, regulation in most countries lets you take yours when you switch. The chain just re-points.

Networking

NAT traversal: reaching you behind a router.

Your device almost never has a public IP address — it sits behind a home or office router doing NAT (network address translation), sharing one public address among many devices. Inbound voice packets addressed to your private IP would die at the router. Two protocols solve this:

  • STUN lets your device ask “outside, what address do I appear to have?” — then it tells the platform to send media there. Simple, works on most home networks.
  • TURN is the fallback: when the network is strict (corporate firewalls, symmetric NAT), a relay server in the cloud receives your media and forwards it. Slightly more latency, always connects.
Diagram of STUN and TURN NAT traversal
STUN for the easy path, TURN relay for the hard one: calls connect even on strict networks.

Good clients try direct first and fall back to relay automatically — which is why your calls connect on hotel Wi-Fi that blocks everything except web browsing.

Messaging

The SMS path: texting without a SIM.

SMS to a virtual number doesn’t travel over SIP at all — it rides the mobile signaling world. Your app sends the message to a messaging API; the provider queues it, splits long texts into segments, and hands it to carriers over SMPP (the protocol SMS centers speak) or direct interconnects. The carrier’s SMS center delivers it to the handset like any other text, and a delivery receipt travels back up the chain.

Diagram of the SMS delivery path
App → API → carrier SMSC → handset, with delivery receipts on the way back.

Inbound works in reverse: someone texts your virtual number, the carrier routes it to your provider’s SMS center, and it appears in your app. Same number for voice and text — one identity, two protocols, zero SIM cards.

Going deeper: everything in this guide is an API call on the esimgomobile platform — provisioning, SIP credentials, SMS, routing. Developers can explore the surface at /developers/, and our tools turn each concept into something you can try.

FAQ

Questions, answered.

What is SIP?
The Session Initiation Protocol — the signaling language devices use to set up, manage and tear down voice and video sessions. It handles “ringing,” “answered,” and “hung up”; the actual voice travels separately over RTP.
What’s the difference between SIP and VoIP?
VoIP is the general idea (voice over internet packets); SIP is the most common protocol used to implement it. Saying “SIP” when you mean “VoIP” is like saying “HTTP” when you mean “the web” — close, but not quite.
Why do calls use UDP instead of TCP?
TCP retransmits lost data, which adds delay — fatal for live conversation. UDP lets a lost 20ms audio chunk simply drop (inaudible) rather than stall the whole call waiting for it.
What is STUN/TURN?
Helpers for reaching devices behind routers. STUN discovers your public address so media can find you directly; TURN relays media through a server when direct connection is blocked. Clients try STUN first, TURN as fallback.
How does SMS work without a SIM?
Your provider connects to carriers’ SMS centers over SMPP or direct interconnects. Texts to your virtual number are routed there and delivered to your app — the SIM was never part of the SMS path, the carrier relationship was.
Do I need to understand any of this to use a virtual number?
No — that’s the point. The platform handles SIP, codecs, NAT and carrier interconnects. This guide exists so that when something behaves oddly, you know which layer to look at.
Keep learning

Where to go next.

Live now

Get your virtual number today.

Virtual numbers are live now — claim yours alongside any eSIM plan.

See plans and pricing