SIP trunking
Your phone system, on routes that prove the caller ID.
Connect a PBX or SBC over SIP and configure the trunk by API. Calls ride only routes whose caller ID showed the exact number on real handsets.
$0
Pay as you go, per month
pay per call
100
Concurrent calls on the largest plan
more on request
1s
Billing increment, 6 second minimum
$0
Inbound calls to your numbers
Overview
A trunk you can set up from code
SIP trunking connects the phone system you already run to carrier routes. Register with a username and password or authenticate by IP, deliver inbound calls to your PBX, and manage numbers, caller IDs and usage through the same API keys as the rest of the platform.
At a glance
- Your trunk
- GET /business-trunks/account
- Allowed addresses
- PUT /business-trunks/ip-allow-list
- Inbound target
- PUT /business-trunks/inbound
- Auth
- Bearer API key, account:read and account:write
- SIP auth
- Registration or IP
- Billing
- Per second, 6 second minimum
Capabilities
Everything a trunk needs, by API
Caller ID proven on real phones
Trunk calls only use routes whose latest test call showed the exact number sent on a handset in the destination, network by network.GET /business-trunks/routing?to=…
Registration or IP authentication
Use the trunk's username and password, rotated on demand, or lock it to your public addresses.POST /business-trunks/credentials/rotate
Inbound to your PBX
Calls to your numbers are delivered to the host and port you name, or to one extension per number.PUT /business-trunks/inbound
Verified caller IDs
Present a number you hold, verified automatically, or one you own elsewhere, verified by a call-back code. Let the PBX choose per call or fix one.POST /business-trunks/caller-ids
Numbers on the trunk
Search and add numbers to the trunk, and send each to the trunk or an extension.GET and POST /business-trunks/numbers
Usage and call records
Minutes used against the bundle and every call, paged, for your own reporting or billing.GET /business-trunks/usage, /calls
Fraud controls from day one
New trunks start with a destination allow-list and a daily spend cap you can adjust, plus your concurrent call limit and allowed addresses.account settings
Guides for your system
Step-by-step set-up for 3CX, FreePBX and Asterisk, Yeastar and Grandstream, Microsoft Teams Direct Routing through a hosted SBC partner, and any SIP device.the trunk wizard in your dashboard
Configure the trunk
Lock it to your addresses, point it at your PBX
Once you have chosen a plan, the trunk is configured with a few requests: the addresses allowed to send calls, where inbound calls go, and a check of how a number would route before you dial it.
- Choosing a plan is POST /business-trunks/subscribe with your planId and emergencyAcknowledged: true. The SIP password is returned once.
- The routing preview shows what the policy would do for a number without naming the route.
# Only these addresses may send calls on the trunk.
curl -X PUT https://packetexchange.io/api/v1/business-trunks/ip-allow-list \
-H "Authorization: Bearer $PACKETEXCHANGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "ips": ["203.0.113.10"] }'
# Calls to your numbers are delivered here.
curl -X PUT https://packetexchange.io/api/v1/business-trunks/inbound \
-H "Authorization: Bearer $PACKETEXCHANGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "target": "pbx.example.com:5060" }'
# What the routing policy would do for a number, before you dial it.
curl "https://packetexchange.io/api/v1/business-trunks/routing?to=+447700900123" \
-H "Authorization: Bearer $PACKETEXCHANGE_API_KEY"const px = (method, path, body) =>
fetch(`https://packetexchange.io/api/v1${path}`, {
method,
headers: {
Authorization: `Bearer ${process.env.PACKETEXCHANGE_API_KEY}`,
'Content-Type': 'application/json',
},
body: body ? JSON.stringify(body) : undefined,
}).then((r) => r.json());
// Only these addresses may send calls on the trunk.
await px('PUT', '/business-trunks/ip-allow-list', { ips: ['203.0.113.10'] });
// Calls to your numbers are delivered here.
await px('PUT', '/business-trunks/inbound', { target: 'pbx.example.com:5060' });
// Recent calls, newest first.
const { data } = await px('GET', '/business-trunks/calls?limit=20');import os
import httpx
px = httpx.Client(
base_url="https://packetexchange.io/api/v1",
headers={"Authorization": f"Bearer {os.environ['PACKETEXCHANGE_API_KEY']}"},
)
# Only these addresses may send calls on the trunk.
px.put("/business-trunks/ip-allow-list", json={"ips": ["203.0.113.10"]})
# Calls to your numbers are delivered here.
px.put("/business-trunks/inbound", json={"target": "pbx.example.com:5060"})
# Recent calls, newest first.
calls = px.get("/business-trunks/calls", params={"limit": 20}).json()["data"]Proof, not promises
Every route tested on a real handset
Test calls go to real phones on each destination network and record what the screen displays. Trunk calls use only the routes whose latest test showed the exact number sent.
Pricing
Bundles or pay as you go
Every plan bills per second with a 6 second minimum and includes free inbound calls to your numbers, each number carrying 2 calls at once. Bundles include minutes each month for UK landlines, UK mobiles, Europe and the rest of the world.
- Pay as you go2 concurrent calls, UK landline $0.0119 a minute
- No monthly fee
- Starter4 concurrent calls, 750 UK landline minutes included
- $29 a month
- Business10 concurrent calls, 3,500 UK landline minutes included
- $129 a month
- Call Centre100 concurrent calls, 12,000 UK landline minutes included
- $379 a month
The full rate card, the destination groups and what bundles cover are on the SIP trunking page.
In production
Built for production
A trunk is only as good as the routes behind it and the caller ID it presents.
- Caller ID that arrivesTrunks ride routes whose caller ID passed a test on a real handset in the destination.
- Your choice of securityIP authentication from an allow list, or a username and password you can rotate with one request.
- Plans or pay as you goBundles with minutes and concurrent calls included each month, or pay as you go with no monthly fee, month to month with no setup fee.
- Configured from your codeAllowed addresses, the inbound target, numbers, caller IDs, usage and call records are all on the API with the same keys as the rest of the platform.
- Works with your PBXGuides for 3CX, FreePBX and Asterisk, Yeastar and Grandstream, and Microsoft Teams Direct Routing through a hosted SBC partner.
Moving over
Your trunk settings map across, one by one.
Coming from Twilio
The names you know, mapped
If you have built on Twilio, most of what you know carries over. These are the pieces that change for this product.
Twilio is a trademark of Twilio Inc. PacketExchange is not affiliated with or endorsed by Twilio.
Questions
SIP trunking, answered
Which phone systems work?
Can I configure the trunk from my own code?
Can I make emergency calls?
Which destinations do business trunks cover?
How are calls billed?
Is there a contract?
Keep reading
- SIP trunkingPlans, the full rate card and the caller ID proof sheet
- Voice terminationCarrier interconnect: buy routes on the marketplace for your own switch
- Phone numbersNumbers to bring onto the trunk
- VoiceProgrammable outbound calls over REST
- API referenceEvery endpoint on the platform
- Moving from TwilioThe full move-over guide
Connect your phone system today
Choose a plan, follow the guide for your system and watch each connection check pass. No contract and no setup fee.
Prefer to talk it through? Contact the team.



