SIP
Session Initiation ProtocolBest for: Office desk phones
- INVITE, from Desk phone
- Ringing, from Phone system
- 200 OK, from Phone system
- Voice, from Desk phone
Compare protocols
Best for: Office desk phones
Best for: Calls inside a website or app
SIP is a signalling protocol that rings phones: INVITE, Ringing, OK, ACK and BYE, with the voice sent separately over RTP. It runs desk phones, phone systems and VoIP lines. WebRTC is the browser's built-in kit for calls: it finds a path through NAT, encrypts every stream and sends media, but leaves signalling to the app. Gateways link the two.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | SIP | WebRTC |
|---|---|---|
| What it is | A signalling protocol | A browser API plus a set of protocols |
| Rings and hangs up | Yes: INVITE, 180 Ringing, 200 OK, BYE | No, the app picks its own signalling |
| Media | RTP, often without encryption (SRTP is optional) | SRTP keyed by DTLS, always encrypted |
| Getting past NAT | Extra setup: SBCs, STUN, keepalives | Built in with ICE, STUN and TURN |
| Ports | 5060 (UDP or TCP), 5061 (TLS) | Chosen during ICE; TURN often on 3478 or 443 |
| Where it runs | Desk phones, phone systems, VoIP providers | Browsers and mobile apps |
| Data channel | No | Yes, for chat, files and game data |
| Standard | RFC 3261 | W3C API, IETF RFC 8825 and related |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 8
What it is
A signalling protocol
No. WebRTC has no rules for ringing or phone numbers. Many apps carry SIP over WebSocket as the signalling for WebRTC calls, and gateways join WebRTC to phone networks.
Media goes straight between devices when ICE finds a direct path. Otherwise it flows through a TURN relay. Group calls often go through a media server.
Plain SIP sends messages as readable text and is a common target for login guessing and toll fraud. Use TLS on 5061, SRTP and a firewall in front.
Yes. Both carry voice and video in RTP. WebRTC always wraps it as SRTP, while SIP setups often use plain RTP.