Skip to content

SIP Trunk Peering: How a Carrier SIP Interconnect Works

SIP trunk peering between carriers: the details to exchange, IP authentication vs registration, number format, codecs, testing and paperwork.

Updated 20 October 2026

A SIP interconnect, also called SIP trunk peering, is a trunk between two carriers' switches: the buyer sends calls from authorized IP addresses to the seller's SIP address, both sides agree on codecs, number format and limits, and a few test calls confirm that signaling, audio and CLI work. Most interconnects are live within a day or two once the details are exchanged.

The details both sides exchange

ItemExampleWhy it matters
Signaling IP addressesYour SBC or switch public IPsThe seller allows calls only from these (IP authentication)
Media IP addressesWhere RTP audio comes fromFirewalls must allow audio, not just signaling
SIP address and portSeller's IP, port 5060 (UDP or TCP) or 5061 (TLS)Where to send the INVITE
Tech prefixA few digits added before the numberIdentifies your account or route on shared IPs
Number formatE.164 without plus, such as 447700900123Wrong format means failed calls
CodecsG.711 A-law, G.711 mu-law, G.729Avoids transcoding and audio failures
DTMF methodRFC 2833 / 4733Key presses must reach IVRs
CapacityChannels and CPSCalls above the limit are rejected

Authentication

Carriers almost always authenticate wholesale trunks by source IP address. The seller adds your IPs to an access list, and calls from anywhere else are refused. Some also support username and password (SIP digest) registration, but IP authentication is standard between carriers. Keep the list small and tell your supplier at once if an IP changes. Weak trunk security is a common entry point for toll fraud.

Number format and dial plan

Agree exactly how numbers are sent: with or without a plus sign, with a tech prefix, and how the CLI is formatted. The standard is E.164, and normalizing your dial plan to it before the call leaves your switch avoids most routing errors.

Codecs, timers and SIP options

  • Offer the codecs you support in order of preference. See G.711 vs G.729.
  • Agree on session timers or keepalives, so long calls are not cut by a timeout on one side.
  • Agree on SIP OPTIONS pings if either side uses them to monitor the trunk.
  • Decide how caller ID is carried (From header, P-Asserted-Identity) and whether privacy headers are honored.

Testing before live traffic

  1. Place a test call to a number you control in the destination country. Check that it rings, that audio goes both ways and that the CLI arrives as expected.
  2. Test several operators and both mobile and fixed numbers.
  3. Check that your switch and the seller's CDRs match on duration for the same calls.
  4. Start with a small share of traffic and watch ASR, ACD and PDD before increasing.

The guide on testing a VoIP route goes into detail, and one-way audio troubleshooting covers the most common setup problem: NAT or firewall rules that block the media stream.

Paperwork around the trunk

Before the technical setup, carriers usually sign an interconnect agreement and complete KYC checks. See the interconnect agreement checklist.

Getting connected

With VoIPMatcher you set up the interconnect once and we manage the route behind it with our carriers. Request a voice route or read more about our VoIP termination service.

Frequently asked questions

What is the difference between a peer SIP trunk and a register SIP trunk?

A peer trunk is authenticated by source IP address: the provider accepts calls only from IPs on its list, and no registration is needed. A register trunk logs in with a username and password and keeps that registration alive. Carriers almost always peer by IP; registration is more common for PBXs on dynamic addresses.

What is SIP peering?

SIP peering is a direct SIP connection between two networks that exchange calls, without registration and usually authenticated by IP address. Between carriers it is the normal way to buy and sell wholesale routes. The two sides agree on IPs, ports, codecs, number format, capacity and caller ID handling, then test before live traffic.

Which port does SIP use?

SIP signalling normally uses port 5060 over UDP or TCP and port 5061 over TLS. Audio travels separately as RTP on a range of UDP ports set on each side's equipment. Carriers state their signalling and media addresses and ports during setup, and your firewall must allow both from their IPs.

Is UDP or TCP better for a SIP trunk?

UDP is the most common transport between carriers and works well on clean links. TCP helps when SIP messages are large enough to be fragmented, and TLS on port 5061 encrypts the signalling. Use what both sides support and record it in the interconnect details, so retransmission and timeout behaviour match on both ends.

Need a route?

Send the destination, route type and target rate. We reply with what we can deliver.

More guides

All guides
VoIP routes Breakouts in a VoIP Rate Deck: Mobile, Fixed, Operator What a breakout is in a VoIP rate deck: how mobile, fixed and operator breakouts are priced, how prefixes decide the rate and how to buy by breakout. VoIP routes Least Cost Routing (LCR) in Telecom: How It Works Least cost routing in telecom and VoIP: how LCR picks a carrier per prefix, why pure price ordering fails, and how quality rules and failover fit in. VoIP routes Session Border Controller (SBC): What It Does What a session border controller (SBC) does in VoIP, when you need one for a SIP trunk, and how an SBC differs from a softswitch. VoIP routes What Is SIP Trunking? How SIP Trunks Work What a SIP trunk is, how SIP trunking connects a PBX to the phone network, what you need to set one up and how it compares with VoIP and PRI. VoIP routes Tier 1 Voice Carriers: Tier 1 vs Tier 2 vs Tier 3 Tier 1 voice carriers vs Tier 2 and Tier 3 in wholesale VoIP: what the tiers mean, how they differ in reach, quality and price, and who buys from whom. VoIP routes Spam Likely on Business Calls: Causes and Fixes Why business calls show Spam Likely or Scam Likely, how call analytics label numbers, and the legitimate fixes: registration, attestation, consent and volume. VoIP routes Are Auto Dialers Legal? TCPA and Dialer Rules Are auto dialers illegal? The US TCPA rules on consent, prerecorded voice, abandoned calls and do-not-call lists as of 2026, and why rules differ by country. VoIP routes CLI vs Non-CLI VoIP Routes: Route Types Explained CLI vs non-CLI VoIP routes compared: caller ID delivery, Local CLI, answer rates, price and which traffic each CLI VoIP route suits.