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

SIP trunking works by splitting a phone call into two jobs that both travel over your internet connection: the Session Initiation Protocol sets up and later tears down the call, while the audio moves separately as Real-time Transport Protocol packets.[2][6] When your IP-PBX places a call, it uses DNS to locate the provider's servers, authenticates over the trunk by a trusted IP address or a username-and-password digest, then sends a SIP INVITE that offers the codecs and media ports it wants to use.[7][10][3] The provider answers with the codecs and ports it accepts, the two ends exchange ringing and answer messages, and once they agree the voice flows as RTP until a BYE ends the session.[3][4][6][2] Because the provider joins that trunk to the public switched telephone network, the call reaches any landline or mobile number, which also places the service under the FCC's interconnected VoIP rules for 911.[1][12][13]

How does SIP trunking work?

SIP trunking works by turning a phone call into data that rides your existing internet connection, then splitting that call into two streams that do different jobs. One stream is signaling, run by the Session Initiation Protocol, which is the standard the industry uses to start a call, change it mid-stream, and end it.[2] The other stream is the media, the actual audio, which travels as Real-time Transport Protocol packets on its own path.[6] Your phone system, usually an IP-PBX, hands each outbound call to an internet telephony service provider over the trunk, and that provider passes the call into the public switched telephone network so it can reach any mobile or landline number.[1] Nothing about that link is a physical wire in the way a T1 or PRI circuit was, because the trunk is a software session whose capacity is counted in how many calls can run at once rather than in copper pairs.[1][14]

The two streams stay separate because they have different needs. Signaling has to be reliable and understood by every device in the path, so SIP is a text-based, request-and-response protocol modeled on HTTP, which makes each message readable and easy for servers to route.[2] Audio has to arrive quickly and in order, so RTP stamps every packet with a sequence number and a timestamp, letting the far end rebuild the sound even when packets arrive out of order.[6] A single call therefore involves a short conversation of SIP messages to agree on terms, followed by a continuous flow of RTP once both ends are connected. The sections below follow one call from the moment your system dials to the moment someone hangs up, since the order of events is where the mechanics are easiest to see.

A SIP trunk call moves through four stages, from finding the provider to tearing the call down, and each stage uses a specific set of protocols.[2] The table shows the sequence at a glance, and the sections after it walk through each stage in detail, including what your equipment does and what tends to break.

Stage What happens Protocols involved
1. Locate and authenticate The phone system finds the provider by DNS and proves it is allowed to send calls DNS NAPTR/SRV, SIP REGISTER or digest auth [7][10]
2. Set up and negotiate An INVITE offers codecs and media ports; the provider answers with what it accepts SIP INVITE, SDP offer/answer [3][5]
3. Ring, answer, and talk Progress and answer messages connect the call, then audio flows both ways SIP 100/180/200, ACK, RTP, RTCP [4][6]
4. Reach the PSTN and hang up The provider bridges the call to the public network, and a BYE releases it SIP BYE, PSTN interconnect [2][12]

Setup runs in well under a second, and the media stage lasts as long as the conversation. The same sequence happens in reverse for an inbound call, where the provider sends the INVITE to your system instead of the other way around.

Stage one: how does the trunk find the provider and prove who it is?

In stage one your phone system locates the provider's servers and proves it is allowed to use the trunk. Finding them is a DNS job: SIP resolves the provider's domain into an IP address, port, and transport protocol using a defined sequence of NAPTR, then SRV, then A or AAAA record lookups, which lets a provider publish several servers and steer traffic without you hard-coding an address.[7] Once the next hop is known, the system authenticates, and providers generally accept one of two methods. With IP authentication the provider configures its system to accept SIP traffic only from your office's static public IP address, so a call from anywhere else is refused.[10] With digest authentication the provider challenges the request, and your system answers with a hash that proves it knows the password without ever sending that password across the network in cleartext.[10] Registration-based trunks re-send that proof on a timer so the provider always knows where to deliver inbound calls, which matters for a system whose address can change. This stage is a frequent cause of calls that fail the instant you dial, so confirming that the provider's expected authentication method matches how your system is addressed is worth doing before cutover.

Stage two: how does a call get set up and the audio negotiated?

Setup begins when your system sends a SIP INVITE toward the provider, and that INVITE carries the terms of the call inside a Session Description Protocol body. SDP lists the media your side wants to use, including the audio codecs it supports and the IP address and port where it expects to receive the audio.[5] That is the offer in the offer/answer model, and the far end replies with an answer that keeps only the codecs it also supports and gives the address and port where it wants to receive media, so both ends converge on a shared set before any audio flows.[3] While that negotiation happens, the provider's server sends back progress responses, such as 100 Trying to show the request arrived and 180 Ringing to show the far phone is alerting.[4] When the call is answered, a 200 OK carries the final media terms, and your system replies with an ACK to confirm the handshake is complete and the call is up.[4][2] In most business deployments a session border controller sits in this path as a back-to-back user agent, which means it ends the provider's SIP session and starts a fresh one toward your PBX, rewriting addresses so private phones can reach a public provider and hiding your internal network layout in the process.[8]

Stage three: how does the trunk carry the audio during the call?

During stage three the spoken audio leaves the SIP path entirely and travels as its own stream of RTP packets between the two addresses the offer and answer agreed on. RTP is built for real-time data such as audio, and it tags every packet with a sequence number and a timestamp so the receiver can play the sound back in the right order even when packets arrive late or out of sequence.[6] A companion protocol, RTCP, rides alongside and reports on quality, giving each side feedback on packet loss and timing that it can act on.[6] Keypad presses during the call, such as the digits you enter for a phone menu, are usually sent as named RTP telephone events rather than as tones inside the audio, which keeps them accurate after the audio has been compressed.[9] How much bandwidth the media needs depends on the codec: the common G.711 codec uses roughly 85 to 87 kilobits per second in each direction once packet headers are counted, while the more compressed G.729 drops that to about 31 kilobits per second per direction.[11] Because voice is sensitive to delay and jitter, many deployments route the media through the session border controller so the provider sees one known address, and they give voice packets priority on the local network so a busy link does not turn into choppy audio.[8]

Stage four: how does the call reach the public network and end?

The final stage is the provider connecting your call to the public switched telephone network and, eventually, tearing it down. Your INVITE only reaches the provider's edge, and from there the provider routes the call across its own connections to other carriers so it can terminate on any landline or mobile number, while inbound calls travel the reverse route to the direct inward dial number that maps to a person or department.[1][14] Because the service lets users both place and receive calls on the public network, it meets the federal definition of an interconnected VoIP service, which requires real-time two-way voice, a broadband connection, and IP-compatible equipment.[12] When either party hangs up, that side sends a SIP BYE, the other confirms with a 200 OK, and both ends stop the RTP stream and release the path for the next call.[2][4] The channel released is not a physical thing to reclaim, since it is simply one of the concurrent call paths the provider counts, so freeing it returns capacity in software rather than hardware. Sitting under the interconnected VoIP rules also means the provider carries 911 duties, including transmitting every 911 call with a call-back number and location and telling subscribers plainly that 911 can fail during a broadband or power outage.[13]

This entry traces a SIP trunk call against the standards that define each step, rather than against any single vendor's description of its own product. The behavior of SIP, the offer/answer negotiation, RTP media, DNS-based server location, and session border controllers all come from the IETF documents that specify them, so the sequence described here is the one equipment is built to follow.[2][3][6][7][8] The interconnection and emergency-calling points come from the Code of Federal Regulations as written, not from a provider's summary of it.[12][13] Bandwidth figures and authentication practices are attributed to independent technical sources, since exact numbers and defaults vary between providers and change over time.[10][11] Anyone who provisions, secures, or regulates SIP trunks is welcome to suggest corrections or additions, which are checked against primary sources before any update is made.

This answer was written and reviewed by the AnswerStack Editorial Team, which has no commercial stake in the products, companies, or methods discussed. Every claim is cited inline and verified on the dates shown.

Trade-offs and limits worth knowing

A SIP trunk depends on your internet connection and exposes your phone system to the public network, so a few limits deserve planning that a legacy circuit did not need.

It only works while the internet and power hold up

A SIP trunk rides your data connection, so if that link or the local power fails, the trunk stops carrying calls, unlike an old analog line that drew its power from the phone company. Sites that cannot tolerate dead phones usually pair the trunk with a second internet path and battery backup, and they configure the provider to reroute calls to mobiles or another location when the primary link goes quiet.

An internet-facing phone system can be attacked

Because the trunk reaches the public internet, an exposed or misconfigured system can be found and abused to place expensive international calls, which is why authentication, encryption of signaling and media, and provider-side limits on call destinations and spending all matter.[10] A session border controller helps here by refusing malformed or unauthorized SIP traffic at the edge before it reaches your PBX.[8]

Emergency calling needs accurate location records

Falling under the interconnected VoIP rules means the provider must route 911 with a call-back number and a usable location, and because a single trunk can serve numbers registered at different addresses, keeping each number's location current is an ongoing task rather than a one-time setup.[13]

Quality depends on the connection, not just the codec

Voice shares the link with everything else on your network, so a connection that handles email without complaint can still produce broken audio when it saturates during busy periods. Giving voice traffic priority and leaving enough headroom for the number of simultaneous calls is what keeps the audio clean once the link fills up.[11]

What SIP trunking is not

SIP trunking is one specific way to connect a phone system to the outside world, and understanding how it works clears up several things it gets confused with.

It is not the SIP protocol by itself

SIP is the signaling standard that sets up sessions for many uses, including video and messaging, while a SIP trunk is a commercial service built on that protocol to carry voice between your phone system and a carrier.[2] In practice you buy the trunk as a service, and it uses SIP internally to handle each call.

It is not a hosted or cloud phone system

With a SIP trunk you keep running your own phone system, on-site or as a virtual machine, and the trunk only connects it to the outside world.[1] A hosted PBX or UCaaS product moves the whole phone system into a provider's data center, so the two solve different parts of the problem and are sometimes deployed together.

It is not VoIP as a whole

VoIP is the broad category of carrying calls over IP networks, and SIP trunking is one form of it aimed at linking a phone system to the public network.[1] A softphone app or a fully hosted service is also VoIP without being a SIP trunk.

It is not the audio path

The signaling you configure and watch is SIP, but the audio never travels inside those SIP messages, since it moves as a separate RTP stream that can take a different route through the network. That split is why a call can show as connected in your PBX while an audio fault traces back to the media path instead of the signaling.[6]

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

2 revisions since publication
v1.1 Reviewed and re-verified.
v1.0 Published after editorial review.