SIP

Session Initiation ProtocolApplication layer · OSI 7

Setting up internet phone calls and routing RTP voice

Step 1 of 6: Register phone location with 401. Alice's SIP app sends REGISTER to UDP 5060 . The server challenges with 401 Unauthorized ; Alice answers with a Digest hash (hiding her password) and receives 200 OK for 3,600 s .
0.0 s / 17.4 s
Alice's phone192.168.1.10Home router198.51.100.7SIP proxy + SBC203.0.113.50Bob's phone198.51.100.200REGISTER
RequestControlResponseHandshakeData

Overview

starts, manages, and ends internet phone calls. Phones register with their provider, trade INVITE, 180 Ringing, and 200 OK messages to pick codecs, and then stream voice over packets.

Session Initiation Protocol (RFC 3261) uses HTTP-like text requests over UDP/TCP port 5060 (or TLS 5061). SIP sets up sessions carrying SDP bodies (RFC 4566); continuous G.711 audio then streams via RTP (RFC 3550).

Key facts

Layer
Application (UDP/TCP 5060, SIPS 5061)
Call handshake
INVITE -> 180 -> 200 OK -> ACK
Audio plane
RTP (G.711, 160 B / 20 ms)
Proxy vs SBC
Proxy adds Via; SBC relays media
Defined in
RFC 3261, RFC 5621, RFC 3550

Signaling set up the call; RTP carried voice

Alice's phone signed in without exposing its password, invited Bob through the provider's SIP proxy and SBC relay, heard it ring, and exchanged 20 ms RTP audio packets until BYE ended the session.

Completed RFC 3261 Digest registration, INVITE/180/200/ACK signaling with SBC NAT media anchoring, G.711 RTP audio streaming, and BYE teardown.

Core methods
REGISTER, INVITE, ACK, BYE
Audio stream
50 RTP packets/s each way
NAT helper
SBC media relay (ports 40000/40002)
Encrypted upgrade
SIPS (TLS 5061) + SRTP

Try it yourself

Send an unauthenticated SIP OPTIONS ping

Tools like `sngrep` or `sipsak` let network engineers inspect live SIP signaling messages on port 5060.

Test-NetConnection -ComputerName sip.example.net -Port 5061