SIP, RTP and how a VoIP call works
Two protocols
- SIP (Session Initiation Protocol, UDP/TCP 5060, TLS 5061) sets up, changes and ends calls.
- RTP carries the audio, on a range of UDP ports (often 10000–20000), described by SDP inside the SIP messages.
A call, step by step
- Phone A → PBX:
INVITE(with SDP: codecs, IP, RTP port) - PBX → A:
100 Trying, then180 Ringingor183 Session Progress - B answers →
200 OKwith its SDP - A →
ACK; audio flows as RTP - Either side →
BYE→200 OK
Authentication challenges appear as 401/407 followed by a repeated request with credentials — normal, not an error.
Codecs
| Codec | Bandwidth | Notes |
|---|---|---|
| G.711 (ulaw/alaw) | ~87 kb/s | Universal, carrier standard; alaw in Australia |
| G.722 | ~87 kb/s | Wideband "HD voice" |
| Opus | 6–64 kb/s | Excellent on mobile and poor links |
Rating
0
0
There are no comments for now.