
What Is SIP? Session Initiation Protocol Explained
SIP (Session Initiation Protocol) is the signaling protocol that sets up, modifies, and ends real-time communication sessions over IP networks, most commonly voice calls. When you make a VoIP call, SIP is the part that locates the other party, negotiates how the call will work, makes the phone ring, connects the call when someone answers, and tears everything down when someone hangs up. SIP does not carry the audio itself. The voice travels separately, normally as RTP media streams, while SIP manages the conversation about the conversation.
SIP is an open standard defined by the IETF in RFC 3261. Because it is vendor-neutral and text-based, it became the common language of modern telephony: IP phones, softphones, PBX systems, contact-center platforms, session border controllers, and carrier networks all interoperate through SIP. It is the protocol behind SIP trunking, which is how most businesses now connect their phone systems to the public telephone network.
Quick facts
| Question | Short answer |
|---|---|
| What does SIP stand for? | Session Initiation Protocol |
| What does it do? | Sets up, changes, and ends real-time sessions such as voice calls |
| Does it carry audio? | No. Audio normally travels as RTP; SIP only handles signaling |
| Who defines it? | The IETF, primarily in RFC 3261 |
| What does it run over? | UDP, TCP, or TLS (encrypted signaling), typically port 5060, or 5061 for TLS |
| What addresses does it use? | SIP URIs, such as sip:[email protected], alongside ordinary phone numbers |
| Where is it used? | SIP trunks, IP phones, softphones, PBXs, contact centers, voice applications |
What SIP actually does
Think of a phone call as two separate jobs. The first job is coordination: finding the person you are calling, asking their device to ring, agreeing on which audio format both sides can use, confirming the answer, and later agreeing that the call is over. The second job is transport: moving the actual voice packets back and forth in real time.
SIP does the first job only. It is a request-and-response protocol, structurally similar to HTTP, in which readable text messages travel between devices. A calling device sends a request such as INVITE; the other side answers with numbered responses such as 180 Ringing or 200 OK.
The second job belongs to RTP (Real-time Transport Protocol), defined in RFC 3550, which carries the encoded audio. SIP and RTP cooperate through SDP (Session Description Protocol, RFC 8866), a small payload inside SIP messages where each side declares its media capabilities: which codecs it supports, which IP address and port it will use for audio, and whether the media should be encrypted with SRTP.
This separation is the single most important thing to understand about SIP. It explains many real-world behaviors, including the classic troubleshooting case where a call connects normally but has one-way or no audio: the SIP signaling path worked, while the separate RTP media path was blocked, usually by NAT or a firewall.
The main SIP messages
SIP defines a small set of request methods. The ones you will encounter most:
- REGISTER tells a SIP server where a user can currently be reached, so incoming calls can find the right device.
- INVITE starts a session. It carries the SDP offer describing the caller’s media capabilities.
- ACK confirms that the caller received the final answer to an INVITE, completing the three-way handshake.
- BYE ends an established call.
- CANCEL abandons a call attempt that has not been answered yet.
- OPTIONS asks a device or server what it supports, and is widely used as a keep-alive to check that a trunk is up.
- REFER asks the other party to contact a third destination, which is how call transfer is implemented.
Responses use three-digit codes grouped by class: 1xx for progress (100 Trying, 180 Ringing), 2xx for success (200 OK), 3xx for redirection, 4xx for client-side errors (404 Not Found, 486 Busy Here), 5xx for server errors, and 6xx for global failures. If you have ever seen a 404 on the web, you already understand the pattern.
How a SIP call works, step by step
A basic call between two SIP endpoints through a provider follows a predictable sequence:
- The caller’s device sends an INVITE addressed to the destination, containing an SDP offer with its supported codecs and media address.
- The provider’s proxy routes the INVITE toward the called party, which may be another SIP endpoint or a gateway into the public switched telephone network (PSTN).
- The called side returns 180 Ringing, which travels back along the same path so the caller hears ringback.
- When the call is answered, the called side sends 200 OK containing its own SDP answer, selecting the codec and stating where it wants to receive audio.
- The caller confirms with ACK. The session is now established.
- Both sides exchange RTP media, the actual audio, using the addresses and codec agreed in the SDP exchange.
- When either party hangs up, that side sends BYE, the other side confirms with 200 OK, and the session ends.
A basic SIP call in five phases: SIP requests and responses coordinate the session through the provider, while the RTP audio flows separately once both sides have agreed on the media details.
Notice that the signaling path and the media path can differ. Signaling typically flows through the provider’s proxies for routing and billing, while media may flow more directly between endpoints or through the provider’s media relays, depending on the network design.
SIP vs the concepts it is confused with
SIP vs VoIP. VoIP is the general category: carrying voice over IP networks. SIP is one specific protocol used to set up VoIP calls, and by far the dominant one in business telephony. Older or proprietary VoIP systems used other protocols, such as H.323, but new deployments are overwhelmingly SIP-based.
SIP vs RTP. SIP handles signaling, while RTP normally carries the media. SIP decides that a call exists; RTP moves the audio inside it. They are separate protocols on separate network paths, which is why each can fail independently.
SIP vs a SIP trunk. SIP is the protocol. A SIP trunk is a service built on it: a connection between a customer’s phone system and a carrier that replaces traditional physical lines such as ISDN. One trunk carries many simultaneous calls, all signaled with SIP.
SIP vs a phone number. A phone number, often provisioned as a DID, is an address in the public numbering plan. SIP is the mechanism that delivers calls to and from that address once they enter the IP world. The number identifies the destination; SIP signaling and RTP media get the call there.
SIP vs SDP. SDP is not a competing protocol. It is the media-description format carried inside SIP messages. SIP transports the offer and answer; SDP is their content.
Where SIP runs in a real deployment
A typical business voice setup contains several SIP-speaking components:
- User agents: the endpoints, such as desk IP phones, softphone apps, and WebRTC gateways.
- A PBX or contact-center platform: manages extensions, queues, IVR menus, and internal routing. It speaks SIP both to the endpoints and to the carrier.
- A session border controller (SBC): sits at the network edge to handle security, NAT traversal, and interoperability between different SIP implementations.
- The carrier or SIP provider: operates proxies and gateways that route calls between the customer’s trunk and the PSTN, so SIP calls can reach ordinary mobile and landline numbers worldwide.
Transport and security choices matter at each hop. SIP can run over UDP or TCP in plain text, or over TLS for encrypted signaling, paired with SRTP for encrypted media. For any traffic crossing the public internet, TLS and SRTP are the sensible default when both sides support them.
Common SIP problems and what they usually mean
- Calls connect but have one-way or no audio. Signaling succeeded but RTP is blocked, almost always by NAT or firewall rules. Check that the media ports negotiated in SDP can actually flow in both directions.
- Registration keeps failing. Wrong credentials, an unreachable registrar, or a firewall dropping traffic on the SIP port. A 401 or 407 response that never resolves points to authentication.
- Calls drop after a fixed interval, often around 30 seconds. A classic symptom of a missing ACK: the call sets up, but the 200 OK is never confirmed, so the called side gives up. Usually a NAT or SIP ALG issue.
- Random call failures or corrupted signaling. Router “SIP ALG” features that rewrite SIP messages incorrectly are a frequent cause. Disabling SIP ALG on the customer’s router is one of the most common fixes in SIP trunk deployments.
- Choppy or robotic audio. Not a SIP problem at all. Once the call is established, quality depends on the RTP path: packet loss, jitter, and codec choice.
Distinguishing signaling problems from media problems is the first step of almost every SIP troubleshooting session.
Where didlogic fits
didlogic operates the carrier side of the SIP conversation. Its network provides SIP trunking that connects a customer’s PBX, contact-center platform, softphone, or voice application to the PSTN: outbound calls leave the customer’s system as SIP and are terminated to phone networks worldwide, while inbound calls to the customer’s virtual phone numbers arrive as SIP INVITEs on the same trunk. Inbound SIP trunking covers the receiving direction specifically.
Everything above the trunk, such as extensions, queues, IVR logic, or conversational software, remains in the customer’s own platform. didlogic provides the signaling and media connectivity between that platform and the public phone network.
FAQs
Is SIP the same as VoIP?
No. VoIP is the broad technology of carrying voice over IP networks. SIP is the specific standard protocol most VoIP systems use to set up and manage calls.
Does SIP carry the voice audio?
No. SIP only signals. The audio is carried by RTP, using the codec and network addresses the two sides agreed on through SDP during call setup.
What port does SIP use?
By convention, 5060 for UDP and TCP, and 5061 for TLS-encrypted signaling. Providers and PBXs can use other ports, and RTP media uses separate port ranges negotiated per call.
Is SIP secure?
SIP itself can run unencrypted or encrypted. Plain UDP or TCP signaling is readable in transit; TLS encrypts the signaling, and SRTP encrypts the media. Security also depends on strong credentials, IP restrictions, and a properly configured edge.
Do I need special hardware to use SIP?
No. SIP runs on ordinary IP networks. Businesses use IP phones, software clients, or existing PBX platforms; an SBC or properly configured firewall is recommended at the edge, but no dedicated phone circuits are required.
Can SIP calls reach normal phone numbers?
Yes. That is the main commercial use. A SIP provider operates gateways between the IP world and the PSTN, so SIP calls can reach and be reached from any mobile or landline number.
What is a SIP URI?
A SIP address in the form sip:user@domain, similar in structure to an email address. In business calling, SIP URIs and E.164 phone numbers are used together: the number identifies the public destination, and SIP URIs address the devices and servers that handle it.
Free trial is available for IT infrastructure managers and developers.