Session Initiation Protocol: Call Flow, Ports and Security
SIP sets up, changes and tears down media sessions. It does not carry the audio or video itself — that is RTP's job. Keeping those two separate is the single most useful thing to understand about voice over IP, because almost every troubleshooting question and every security question turns on it. Signalling and Media Are Different Streams SIP negotiates. RTP delivers. They use different ports, frequently take different paths through the network, and fail independently. That independence produces the classic symptom: the phone rings, someone answers, and neither side hears anything. Signalling worked, media did not. The fault is almost always a firewall or NAT device permitting SIP on port 5060 while dropping the dynamically negotiated RTP ports. The Call Flow A basic call is worth memorizing as a sequence: INVITE — the caller requests a session, carrying an SDP body describing the codecs and the address it wants media sent to. 100 Trying — the next hop ...