How SIP works
SIP sets up VoIP calls: INVITE rings the other phone, 180 Ringing and 200 OK answer it, and the voice itself flows as RTP packets. BYE hangs up.
Layer: Application (OSI layer 7) · Port: 5060 / 5061 · Transport: UDP or TCP · Format: Text (like HTTP) · Standard: RFC 3261
SIP packet flow
- SIP Client → SIP Server: INVITE sip:ali@example.com
- SIP SIP Server → Their Laptop: INVITE (forwarded)
- SIP Their Laptop → SIP Server: 180 Ringing
- SIP Their Laptop → SIP Server: 200 OK (SDP: codec Opus)
- SIP SIP Server → Client: 200 OK
- RTP Client → Their Laptop: Voice packets every 20 ms
- SIP Client → Their Laptop: BYE
Other protocols: HTTP · WebSocket · QUIC · SMTP · IMAP · POP3 · FTP · SMB · WebRTC · RTSP · RTMP · MQTT · Modbus · PPPoE