Skip to content
Answer Stack
Open menu

How does SIP trunking work?

✓ Verified Last reviewed by AnswerStack Next review due Oct 18, 2026

Every claim is sourced below

A SIP trunk connects your phone system to a carrier over an IP network in place of telephone circuits. Each call has two parts. The PBX and the carrier exchange short SIP messages that set the call up, and the audio travels as a separate stream of packets until one side hangs up. The carrier passes the call on to whichever network serves the number you dialed.

The two ends of the trunk

One end of the trunk is your PBX. The other is the carrier's voice network. Atlantech Online, for example, delivers SIP trunks to customers that already run their own VoIP PBX, and offers a hosted PBX to customers who would sooner not run one. With a trunk, the PBX keeps its extensions, voicemail and call routing. The carrier supplies the phone numbers and the route to everyone outside your phone system.

The trunk between them is an arrangement more than a cable. Each side is configured to reach the other and with rules for which messages to trust. No wire is set aside for each call. A trunk's capacity is counted in simultaneous calls, and our answer on what a SIP trunk channel is explains that unit.

One outbound call, message by message

Suppose someone at extension 214 dials a supplier's mobile number. The PBX sees that the number belongs to no extension of its own and sends the carrier a SIP message called an INVITE. The SIP standard, RFC 3261, walks through a tutorial call with this pattern.

The INVITE says who is calling and which number they want. It also carries a session description, attached the way a document is attached to an email. That description lists the audio formats the PBX can use and the address where the PBX wants to receive audio.

The carrier replies with 100 Trying, which means the request arrived and is being routed. It works out which network serves the supplier's number and passes the call toward it. This happens during setup. The mobile network is involved before the call is answered.

Next a 180 Ringing message comes back. It reports that the far end is alerting the supplier, and the caller at extension 214 hears ringback. When the supplier answers, a 200 OK arrives. It carries the other side's session description, with the audio format chosen and the address where audio should be sent. The PBX confirms with an ACK. RFC 3261 calls this exchange of two descriptions "a simple offer/answer model." Once it completes, both sides know what kind of audio to send and where to send it.

Other outcomes replace parts of this sequence. A busy or declined call returns an error where the 200 OK would have been, and some carriers ask the PBX to prove its identity before they accept the INVITE.

Message Sent by What it means
INVITE PBX Requests the call and describes the audio the PBX can send and receive
100 Trying Carrier The request arrived and is being routed
180 Ringing Carrier The far end is alerting the person called
200 OK Carrier The call was answered, with the other side's audio description
ACK PBX Confirms the answer and completes setup
BYE Whichever side hangs up Ends the call, and the other side replies 200 OK

How the audio travels

SIP creates the session, can change it mid-call and ends it. It does not carry the voices. Those travel in the Real-time Transport Protocol, or RTP, defined in RFC 3550. Each side chops its audio into small packets and sends them to the address the other side gave during setup.

RTP assumes an imperfect network. The RFC points out that packet networks sometimes lose packets, reorder them and delay them by varying amounts. So each RTP packet carries a sequence number and a timestamp. The receiver uses them to put the audio back in order and play it at the right pace. That is as far as the protocol goes. RTP "does not guarantee delivery or prevent out-of-order delivery," so it cannot make up for a connection that drops too much. Call quality depends on that connection, and also on the equipment at each end and how it is configured. A companion protocol, RTCP, reports how well the audio is arriving. We cover the network side in the connection and bandwidth SIP trunking needs.

The audio can also take its own route. In RFC 3261's tutorial call, "the end-to-end media packets take a different path from the SIP signaling messages." This helps explain a fault that puzzles people the first time they meet it. A call rings, connects and shows as active, yet one person hears nothing. The SIP messages got through, so one possible fault is in how the audio was addressed or delivered. The packets may have been sent to an address they could not reach, or a firewall may have blocked them on the way. Settings on the equipment at either end can matter too. Signaling and audio are checked separately for that reason.

When either person hangs up, that side sends a BYE and the other answers 200 OK. Both stop sending audio.

Inbound calls run the other way

When someone dials one of your numbers, their network delivers the call to your carrier, because your carrier holds that number. The carrier then sends the INVITE to your PBX. The PBX rings an extension or plays the auto attendant, and the same alerting, answer and audio steps follow.

For this to work, the carrier has to know where your PBX is. One way is a fixed address agreed when the trunk is set up. Another is registration. RFC 3261 describes a device sending REGISTER messages when it starts and at regular intervals afterward, which tells a server where the device can currently be reached. The RFC presents registration as one of the ways a server can learn this. Which method your trunk uses is part of the carrier's setup.

Where a session border controller fits

A trunk may have a session border controller, or SBC, somewhere between the PBX and the carrier's network. RFC 5853 describes the functions these devices can perform. An SBC can repair SIP messages from equipment that does not follow the standard closely. It can keep a connection alive to a PBX that sits behind a firewall's address translation. It can also rewrite the session description so the audio passes through a relay the operator controls. Which of these a given SBC performs depends on how it is deployed.

An SBC is not part of every trunk on the customer's side. A carrier may run its own, and a PBX on a private circuit to the carrier may connect without one. Our answer on the equipment SIP trunking needs covers when you would own one.

How a trunk's call capacity is set

Nothing in this exchange reserves a circuit. RFC 3550 says RTP "does not address resource reservation," and SIP manages sessions without setting aside network capacity for them. So the carrier's limit on simultaneous calls is a setting. It is not a count of physical lines.

That gives a trunk room to flex. Atlantech's 2023 post mentions a local government customer that adds capacity on its SIP trunks during weather events such as snowstorms and tropical storms. The carrier's limit is one of several ceilings. The PBX, any SBC or gateway and the data connection each have a maximum of their own, and extra calls need room under all of them. Our answer on how many simultaneous calls you need covers how to choose the number.

The trunk only defines the link between your PBX and your carrier. Beyond the carrier, the call may finish on a mobile network, a copper landline or another IP phone system, and our answer on the difference between PSTN and VoIP compares those networks. In the call above, the request had reached the supplier's mobile network before the supplier's phone was alerted.

Sources

SIP trunking

Wikipedia

Independent Verified Jul 18, 2026 Supports: SIP trunking as a VoIP service based on SIP by which ITSPs deliver telephone service to IP-PBX customers and connect them to the PSTN; virtual trunk sized in concurrent calls; distinction from hosted systems and from VoIP in general

“SIP trunking is a voice over Internet Protocol (VoIP) technology and streaming media service based on the Session Initiation Protocol (SIP) by which Internet telephony service providers (ITSPs) deliver telephone services and unified communications to customers equipped with SIP-based private branch exchange (IP-PBX).”

RFC 3261: SIP: Session Initiation Protocol

IETF

Primary source Verified Jul 18, 2026 Supports: SIP as the application-layer signaling protocol that creates, modifies, and terminates sessions including Internet telephone calls; text-based HTTP-like request/response model; INVITE sets up, ACK confirms, BYE terminates, REGISTER registers

“an application-layer control (signaling) protocol for creating, modifying, and terminating sessions with one or more participants. These sessions include Internet telephone calls, multimedia distribution, and multimedia conferences.”

RFC 3264: An Offer/Answer Model with the Session Description Protocol (SDP)

IETF

Primary source Verified Jul 18, 2026 Supports: Offer/answer model: one side offers the media streams, codecs, and IP addresses and ports it wants to use, and the other returns an answer accepting a matching set before media flows

“the set of media streams and codecs the offerer wishes to use, along with the IP addresses and ports the offerer would like to use to receive the media.”

RFC 3665: Session Initiation Protocol (SIP) Basic Call Flow Examples

IETF

Primary source Verified Jul 18, 2026 Supports: The successful basic call sequence: INVITE, 100 Trying, 180 Ringing, 200 OK, ACK, both-way RTP media, then BYE and 200 OK to end; includes registration scenarios

“Scenarios include SIP Registration and SIP session establishment. Call flow diagrams and message details are shown.”

RFC 4566: SDP: Session Description Protocol

IETF

Primary source Verified Jul 18, 2026 Supports: SDP describes a multimedia session for session invitation, including media type, the codec/format of the media, and the transport port and connection address for the media

“SDP is intended for describing multimedia sessions for the purposes of session announcement, session invitation, and other forms of multimedia session initiation.”

RFC 3550: RTP: A Transport Protocol for Real-Time Applications

IETF

Primary source Verified Jul 18, 2026 Supports: RTP carries the real-time audio of a SIP call separate from signaling, with sequence numbers and timestamps that let the receiver reconstruct the packet order; RTCP monitors quality of service

“RTP provides end-to-end network transport functions suitable for applications transmitting real-time data, such as audio, video or simulation data, over multicast or unicast network services.”

RFC 3263: Session Initiation Protocol (SIP): Locating SIP Servers

IETF

Primary source Verified Jul 18, 2026 Supports: SIP uses DNS procedures (NAPTR, then SRV, then A/AAAA lookups) to resolve a SIP URI into the IP address, port, and transport protocol of the next hop, which is how a trunk locates the provider's servers

“The Session Initiation Protocol (SIP) uses DNS procedures to allow a client to resolve a SIP Uniform Resource Identifier (URI) into the IP address, port, and transport protocol of the next hop to contact.”

RFC 5853: Requirements from Session Initiation Protocol (SIP) Session Border Control (SBC) Deployments

IETF

Primary source Verified Jul 18, 2026 Supports: SBCs are by definition back-to-back user agents that sit at the network border; their functions group into perimeter defense (access control, topology hiding, denial-of-service prevention), functionality not in endpoints (NAT traversal, protocol interworking or repair), and traffic management (media

“These functions include: a) perimeter defense (access control, topology hiding, and denial-of-service prevention and detection); b) functionality not available in the endpoints (NAT traversal, protocol interworking or repair); and c) traffic management (media monitoring and Quality of Service (QoS)).”

RFC 4733: RTP Payload for DTMF Digits, Telephony Tones, and Telephony Signals

IETF

Primary source Verified Jul 18, 2026 Supports: DTMF keypad digits and other telephony events are carried as named RTP telephone events rather than as tones inside the compressed audio, keeping them accurate across the media path

“This memo describes how to carry dual-tone multifrequency (DTMF) signalling, other tone signals, and telephony events in RTP packets. It obsoletes RFC 2833.”

SIP Registration & Authentication Guide

Connection Technologies

Independent Verified Jul 18, 2026 Supports: Two SIP trunk authentication methods: IP-based authentication where the provider accepts SIP traffic only from your static public IP address, and digest authentication where a challenge is answered with a hash of the password that is never sent in plain text

“The provider configures their system to accept SIP traffic from your office's static public IP address... the digest authentication mechanism (similar to HTTP digest auth) creates a hash that proves knowledge of the password... The password is never sent over the network in plain text.”

G.711 vs G.729: VoIP Codec Comparison

TelcoBridges

Independent Verified Jul 18, 2026 Supports: Per-call media bandwidth including RTP/UDP/IP/Ethernet headers: G.711 about 85 to 87 kbps per direction, G.729 about 31 kbps per direction at 20 ms packetization

“G.711 generates 50 packets per second, each carrying 160 bytes of audio plus about 54 bytes of RTP/UDP/IP/Ethernet headers, for a total of around 85 to 87 kbps per direction.”

47 CFR 9.3, Definitions: Interconnected VoIP service

Legal Information Institute, Cornell Law School

Primary source Verified Jul 18, 2026 Supports: Definition of interconnected VoIP: real-time two-way voice, a broadband connection, IP-compatible customer premises equipment, and the ability to receive calls from and terminate calls to the PSTN; the category a SIP trunk provider falls under

“Permits users generally to receive calls that originate on the public switched telephone network and to terminate calls to the public switched telephone network.”

47 CFR 9.11: E911 service requirements for interconnected VoIP

Legal Information Institute, Cornell Law School

Primary source Verified Jul 18, 2026 Supports: Interconnected VoIP E911 duties: transmit all 911 calls with a call-back number and location, and advise subscribers in plain language of circumstances where E911 may be unavailable, including broadband connection failure and loss of electrical power

“broadband connection failure, loss of electrical power, and delays that may occur in making a dispatchable location available.”

SIP Trunking: Efficient Voice Communications

Atlantech Online

Supporting Verified Jul 18, 2026 Supports: Plain-language corroboration that a SIP trunk replaces the PSTN or PRIs and sends voice traffic over a packet-switched network rather than dedicated circuits; corroborated by [1] and [2]

“SIP Trunking replaces the traditional method of the public switched telephone network (PSTN) or PRIs...and instead uses a specific packet switched network to send voice traffic to a destination.”

Revision history

1 revision since publication
Originally published