About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
When a Teams user dials a number through Direct Routing, Teams decides which session border controller (SBC) should carry the call by following a chain: the user's voice routing policy holds PSTN usages, each PSTN usage holds voice routes, and each voice route holds a number pattern and a list of gateways. Microsoft response code 510559 with SIP 403 is Teams reporting that the chain ended without a route for the number that was dialled.
The sections below show how to read the code, how to walk the chain link by link without changing anything, how to correct the broken link with a record to undo from, and how to confirm the result. The other rows on the same Microsoft page are covered in the 510560 page and the 510532 page, and are not repeated here.
What the error means
Microsoft's SIP 403 page lists "510559 403 Get Outbound routing - No viable path (Forbidden)" with Microsoft response code 510559 and SIP response code 403. The suggested action reads: "Make sure that the dialed number in Teams matches a corresponding number pattern in a voice route for the given user."
The page adds that in some cases the error occurs because an incorrect number is dialled, or because the customer's own internal policy prevents calls to specific countries, regions or number patterns. Our own reading: in those cases the 403 may be the system doing what it was set up to do.
Microsoft's call-routing page describes the elements:
- A voice routing policy, also called a call routing policy, is a container for PSTN usages that can be assigned to one user or many.
- A PSTN usage is a container for voice routes and can be shared between policies.
- A voice route is a number pattern and a set of online PSTN gateways to use for calls where the called number matches the pattern.
- An online PSTN gateway is a pointer to an SBC.
The page applies to Direct Routing PSTN calls only, not to Microsoft Calling Plan or Operator Connect deployments.
Likely causes
| Cause | Where Microsoft's pages describe it |
|---|---|
| The dialled number is wrong, or the business's own policy blocks that country, region or pattern | The 510559 row on the SIP 403 page |
| None of the patterns in the voice routes reachable through the user's online voice routing policy match the number | The outbound-calls page, "Some users can't make outbound calls", Cause 2 |
| The user's effective policy has no valid PSTN usage record | The same page, Resolution 2 |
| The PSTN usage on the voice route is not the one in the user's policy | The same page, Resolution 2 |
| The gateway named in the voice route does not exist, is not enabled or is not reachable | The same page, Resolution 2; and "No users can make outbound calls", Cause 1 |
| The voice routing configuration contains invisible characters, introduced by pasting from a rich-text editor | The outbound-calls page, Cause 3 |
| The user has Teams Phone only, so no other route exists for the call | The call-routing page: if the user only has Teams Phone, the call is dropped because no matching rules are available; a user with both Teams Phone and Microsoft Calling Plan licences is routed through Calling Plan |
Prove the cause before changing anything
All of these steps only read. Work down the chain and stop at the first link that fails.
-
Take the number exactly as dialled from the call record. Microsoft says that if the called number contains an extension, the pattern is applied only to the number without the extension, so compare against the part before the extension. Check whether the call should be allowed at all, because the 510559 row says an incorrect number or the customer's own internal policy can cause the error.
-
Read which voice routing policy the user has. Microsoft's call-routing page gives this read-only command:
Get-CsOnlineUser "user1@contoso.com" | select OnlineVoiceRoutingPolicy
Write down the policy name in the output, and the time.
- Read the PSTN usages. Microsoft's page gives this read-only command, which returns a list of names:
Get-CSOnlinePSTNUsage
Names in the output can be cut short. Microsoft gives this read-only form to show the full names:
(Get-CSOnlinePSTNUsage).usage
- Read the voice routes with the read-only command from the same page:
Get-CsOnlineVoiceRoute
For each route, look at NumberPattern, OnlinePstnUsages and OnlinePstnGatewayList. Microsoft's example pattern, ^\+1(425|206)(\d{7})$, matches a +1 number with area code 425 or 206 and seven more digits. Check that the dialled number, in the form Teams sends it, matches a pattern, that the PSTN usage on that route is one of the usages in the user's policy, and that the gateway named exists.
- Check that the gateway is enabled. Microsoft's outbound-calls page gives this read-only command and says the Enabled property must show True:
Get-CsOnlinePSTNGateway | fl Identity,Fqdn,SipSignalingPort,MaxConcurrentSessions,Enabled
-
Check the pattern itself. Microsoft's call-routing page says to make sure the regular expression in the NumberPattern attribute is a valid expression and names a regular-expression testing website for it.
-
Check for invisible characters. Microsoft says invisible characters can enter voice routing configuration when information is pasted from rich-text editors, and that they are not displayed but still affect route matching. Microsoft's outbound-calls page says to identify the character by using a tool that reveals hidden characters and character codes.
Fix
Correct only the link that the proof showed to be broken. A voice route is shared by every user whose policy holds its PSTN usage, so a change to a route is not a change for one user.
Change the number pattern of an existing route
Write down the route's current NumberPattern, Priority, OnlinePstnUsages and OnlinePstnGatewayList from the Get-CsOnlineVoiceRoute output, and the time.
Risk: the next command changes the number pattern and the gateway list of this route, and with them which dialled numbers use this route for every user whose policy contains the route's PSTN usage. A pattern that is too wide, such as .*, which Microsoft's page uses for "route all calls to the same SBC", sends every number to this route. The command can be undone with the values written down.
Microsoft's page gives this form of the command, with its own example values replaced by placeholders:
Set-CsOnlineVoiceRoute -id "<route name>" -NumberPattern "<pattern>" -OnlinePstnGatewayList <SBC FQDN>
To undo it: run the same command with the NumberPattern and OnlinePstnGatewayList you wrote down.
How Microsoft's page creates a voice route
Microsoft's call-routing page creates a voice route with the New-CsOnlineVoiceRoute cmdlet, giving it an identity, a number pattern, a list of gateways, a priority and the PSTN usages it belongs to. No steps are given for it.
Replace a voice route that contains invisible characters
Write down the full Get-CsOnlineVoiceRoute output and the time.
Disruptive step: Microsoft's outbound-calls page resolves invisible characters by removing the affected configuration and re-creating it, either by entering it manually or by copying it from a plain-text editor such as Notepad. The removal deletes the route. Our own reading: calls that matched it have no route until it is re-created.
The re-creation uses the values you wrote down. Type them, or copy them from a plain-text editor, and enter them in the form of the Set-CsOnlineVoiceRoute or New-CsOnlineVoiceRoute commands on Microsoft's call-routing page.
To undo it: re-create the route from the values you wrote down.
Enable the gateway named in the route
Write down the Enabled value of the gateway from the proof step, and the time.
Risk: the next command turns on the SBC for outbound calls. Microsoft says the Enabled setting is used to temporarily take an SBC out of service during maintenance, so check that nobody disabled it on purpose.
Microsoft's outbound-calls page gives this command. Replace the example name with the SBC's name.
Set-CsOnlinePSTNGateway -Identity "sbc2.contoso.com" -Enabled $true
To undo it: run the same command with -Enabled set to the value you wrote down. This takes the SBC out of service for outbound calls.
Assign the correct voice routing policy to the user
Write down the policy name from step 2 of the proof, and the time.
Risk: the next command changes the voice routing policy of one user, and therefore which routes that user's calls can use.
Microsoft's call-routing page gives this command:
Grant-CsOnlineVoiceRoutingPolicy -Identity "user1@contoso.com" -PolicyName "US Only"
Replace the example user and policy with the affected user and the policy that holds the right PSTN usage. Microsoft gives the same change in the Teams admin center as: Users, select the user, Policies, next to Assigned policies select Edit, under Voice routing policy select the policy, Save.
To undo it: if the user already had a policy, run the same command with the policy name you wrote down.
Confirm the fix
- Run the read-only commands from the proof again. The user's policy, the PSTN usage, the pattern and the gateway all line up, and Enabled reads True.
- Place a test outbound call as the user to a number that should be allowed. The 510559 refusal no longer appears in the call record.
- Place a test call to a number that should stay blocked, if the business blocks any. It should still be refused, which shows the fix did not open more than intended.
- Microsoft's call-routing page describes a self-diagnostics test inside the tenant, "Run Tests: Teams Direct Routing" in the Microsoft 365 admin center, that verifies a user is correctly configured for Direct Routing. The page says it is not available for Microsoft 365 Government, Microsoft 365 operated by 21Vianet or Microsoft 365 Germany.
What to watch afterwards
- A new 403 with a different code on the same call. 510560 means the user is not Enterprise Voice enabled, and 510532 means the call is arriving from an SBC name the tenant does not recognise.
- The order of PSTN usages in a policy. Microsoft's page says the usages are applied in order and that if a match is found in the first usage, the others are never evaluated, so a broad usage placed first can take calls that a narrower one was meant to handle.
- Calls forwarded or transferred from an inbound PSTN call. Microsoft says the ingress SBC is prioritised above others if it is also listed as an egress SBC.
- The org-wide default policy. Microsoft's caution says that if the global online voice routing policy is configured and applied, all voice-enabled users inherit it, which can send Calling Plan and Operator Connect calls to a Direct Routing trunk unintentionally.
Read next
Related articles you may want next.
- TroubleshootingSIP 403 Forbidden on REGISTER: Asterisk PJSIP AOR has no max_contactsAsterisk PJSIP SIP 403 on REGISTER: AOR missing max_contacts or contact limit. RFC 3261 403; set max_contacts.Read article
- TroubleshootingZoom Phone 486 peer busy / 403 account inactiveZoom Phone 403 inactive account and 486 peer busy: read the last three digits, then follow Zoom Phone admin steps.Read article
- TroubleshootingTeams sign-in error 0xCAA20004, 0xCAA70004 or 0xCAA82EE7: what the code means and what to checkTeams will not sign in with 0xCAA82EE7, 0xCAA20004 or 0xCAA70004? Run the sign-in diagnostic, check network and Conditional Access, then reinstall safely.Read article
Risks and limits
These steps come from Microsoft's pages and have not been run or lab-tested. They apply to Direct Routing only.
The 510559 row gives one suggested action and the outbound-calls page gives the chain to check. A voice route is shared by every user whose policy holds its PSTN usage, and a pattern that matches too much can send calls to a route that was meant for others.
Sources
- SIP response code 403 — Microsoft Learn, page dated 25 June 2025, accessed 4 December 2026
- Resolve issues that affect outbound Direct Routing calls — Microsoft Learn, page dated 23 November 2026, accessed 4 December 2026
- Configure call routing for Direct Routing — Microsoft Learn, page dated 10 September 2026, accessed 4 December 2026
- Connect your Session Border Controller (SBC) to Direct Routing — Microsoft Learn, page dated 26 April 2026, accessed 4 December 2026
This article was originally published on .