Route a UK toll-free number to MS Teams in 5 minutes
This tutorial routes a UK 0800 (or 0808) toll-free number from DIDHub into Microsoft Teams Direct Routing so an agent on Teams answers the call. We use the DIDHub managed SBC, so no on-prem SBC is required.
Step 1: Add the DIDHub managed SBC FQDN to your tenant
From a PowerShell session connected to Microsoft Teams (Connect-MicrosoftTeams):
# Register DIDHub managed SBC as a PSTN gateway New-CsOnlinePSTNGateway -Fqdn "sbc-uk.didhub.io" -SipSignalingPort 5061 -Enabled $true -MediaBypass $false -ForwardCallHistory $true -ForwardPai $true
Step 2: Create a PSTN usage and voice route
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="DIDHub-UK-TollFree"} New-CsOnlineVoiceRoute -Identity "DIDHub-UK-TollFree-Route" -NumberPattern "^\+448(00|08)\d+$" -OnlinePstnGatewayList "sbc-uk.didhub.io" -Priority 1 -OnlinePstnUsages "DIDHub-UK-TollFree"
Step 3: Apply a voice routing policy
New-CsOnlineVoiceRoutingPolicy "DIDHub-UK-Inbound" -OnlinePstnUsages "DIDHub-UK-TollFree" # Assign to the user / group who will answer the toll-free Grant-CsOnlineVoiceRoutingPolicy -Identity "agent@yourtenant.com" -PolicyName "DIDHub-UK-Inbound"
Step 4: Bind the toll-free number in DIDHub
In your DIDHub dashboard:
Open Numbers
Locate the +44 800 / 808 DID under Numbers → UK → Toll-Free.
Set route
Routing target: Microsoft Teams (Direct Routing). Tenant FQDN auto-detected from PSTN gateway peering.
Enable e.164
Send-to format: +44800XXXXXXX in the SIP INVITE Request-URI.
Save
Activation is instant. Allow up to 60 seconds for SBC peering propagation.
Step 5: Assign the number to a Teams user
Set-CsPhoneNumberAssignment -Identity "agent@yourtenant.com" -PhoneNumber "+448001234567" -PhoneNumberType DirectRouting
Step 6: Test the call
Dial 0800 1234 567 from any UK mobile or landline. The call should ring on the assigned agent's Teams app within 2-3 seconds.
Troubleshooting
- Call connects but no audio: Set
-MediaBypass $falseon the PSTN gateway. UK toll-free traffic must flow via the SBC. - Caller hears "the number you dialed is not valid": Double-check that
+44800XXXXXXXmatches the route'sNumberPatternregex. - Outbound from Teams fails: Toll-free is inbound-only by definition — create a separate route for outbound (geographic DID) if needed.
What you just built
An end-to-end UK toll-free → Teams Direct Routing flow with STIR/SHAKEN attestation, free inbound to your agents, and no on-prem SBC. Total provisioning time: typically under 5 minutes once Teams is licensed.
More tutorials
3CX SIP Trunk Setup with DIDHub
How to add a DIDHub SIP trunk in 3CX v18 / v20 using the generic SIP trunk template. DID inbound rule, outbound rule, and codec order includ
Asterisk pjsip Trunk to DIDHub
Minimal copy-pasteable pjsip.conf and extensions.conf for an Asterisk 18+ trunk registered to DIDHub with inbound + outbound routing.
Connect Vapi BYOC SIP Trunk to a DIDHub Phone Number
Step-by-step tutorial for Vapi BYOC: create a DIDHub SIP trunk, register it in Vapi, import a DID, and test inbound + outbound. Cuts Vapi te
SIP Trunk Failover Across DIDHub PoPs
Set up SIP trunk failover across DIDHub PoPs in 8 regions (US East/West, EU, MENA, India, APAC, ANZAC, LATAM, Africa) with DNS SRV, primary
Ready to get a number?
Pick a DID in 130+ countries from $1.99/month. Activates instantly on most numbers.