âSIP sets up the game. RTP plays it.â
đ§© So... What is SIP?
SIP (Session Initiation Protocol) is the VoIP equivalent of the game master â it sets the rules, gets the players into the arena, and then steps back once the game (the voice conversation) begins.
In plain terms:
SIP handles call setup, ringing, answering, and tear-down. It does not carry your voice â thatâs RTPâs job.
Think of SIP like sending someone a party invite. It tells them:
- Whoâs calling
- Where the call should happen
- How they can reach you
- And whether they want to accept it or ghost you
âïž The Call Flow (Simplified)
Hereâs how a basic SIP call between two softphones works:
User A SIP Server User B
| | |
|--- INVITE ------->| |
| |--- INVITE ------->|
| |<-- 180 RINGING ---|
|<-- 180 RINGING ---| |
| |<-- 200 OK --------|
|<-- 200 OK --------| |
|--- ACK ---------->| |
| |--- ACK ---------->|
| | |
|<==== RTP Media Stream (Voice) ======>|
| | |
|--- BYE ---------->| |
| |--- BYE ---------->|
| |<-- 200 OK --------|
|<-- 200 OK --------| |
đ§ Key SIP Messages
Message | What it Means |
---|---|
INVITE | âHey, want to talk?â |
180 RINGING | âTheyâre being notifiedâ |
200 OK | âThey picked up!â |
ACK | âCool, letâs connectâ |
BYE | âGotta go, bye!â |
đŻ SIP in Action â What You See in Logs
If youâve ever looked at SIP logs (Wireshark, anyone?), youâll see something like:
INVITE sip:bob@example.com SIP/2.0
From: "Alice" sip:alice@example.net
To: sip:bob@example.com
Call-ID: 789abc123@example.net
CSeq: 1 INVITE
Contact: sip:alice@192.168.1.10:5060
Content-Type: application/sdp
Content-Length: 151
Notice that last part? Content-Type: application/sdp
đ
Yup â SIP includes something called SDP inside it. Itâs like the fine print in your call invitation â it lists what codecs you'll use, what port to send media to, and more.
đ§© SIP â Voice
SIP doesnât carry your voice.
Instead, once the SIP call is accepted, RTP (Real-time Transport Protocol) takes over to actually move the media (voice, video, etc.) between endpoints.
So:
- SIP = The call setup (the RSVP)
- RTP = The actual voice (the conversation)
đ What Happens When You Hang Up?
A typical SIP BYE exchange:
User A --> BYE --> SIP Server --> BYE --> User B
User B --> 200 OK --> SIP Server --> 200 OK --> User A
Simple. Fast. And very polite.
đŻ TL;DR
- SIP is a signaling protocol, not a media protocol
- It helps set up, modify, and end VoIP calls
- It uses messages like
INVITE
,RINGING
,ACK
, andBYE
- It wraps media setup details using SDP (coming next)
- After the call setup, RTP moves the actual voice packets
đ§ Up Next in SIP GAMES:
âWhatâs in the Envelope? Unpacking SDPâ
SDP (Session Description Protocol) tells your devices what media codecs to use, how to send the audio, and more â itâs like the secret note inside your SIP envelope.
Stay tuned as we dive into how a voice call actually finds its voice.
đč Follow @sip_games for more VoIP magic â minus the RFC migraines.
Top comments (0)