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.
A call arrives at Microsoft Teams through a Session Border Controller (SBC), the device that connects your phone provider to Teams Direct Routing, and Teams answers with SIP response code 404 and Microsoft response code 511404. In plain terms, Teams looked for a user who owns the number that was dialled and found nobody. The call fails.
The sections below explain what the code says, where the number Teams looks up comes from, how to compare the number the SBC sends with the number held in Teams, and how to correct the format. Nothing before the Fix section changes anything.
What the error means
Microsoft lists this code on its SIP 404 page for Direct Routing PSTN calls. The page applies to Direct Routing only; it does not apply to Microsoft Calling Plan or Operator Connect deployments. The row reads:
"511404 404 Getting user info by number from RuntimeAPI failed"
Microsoft's suggested action is that this code "indicates that the user can't be found during the reverse number lookup." The fix on the page is to make sure that the callee number format of your SBC or PSTN trunk provider matches the format assigned to the user or resource account. Microsoft says "Usually, Microsoft expects calls to be in the E.164 normalized format, including country/region code, network destination code, and subscriber number."
The same page carries one other 404 row, which is a different problem:
| Microsoft code | SIP code | Message | Microsoft's suggested action |
|---|---|---|---|
| 511404 | 404 | Getting user info by number from RuntimeAPI failed | Make the callee number format of the SBC or PSTN trunk provider match the format assigned to the user or resource account |
| 10202 | 404 | Replacement call was not found | In call merge and consultative transfer scenarios, check whether the SBC is configured to try a replacement call after an initial failure |
Only the first row is the subject here. If your trace shows 10202, the SBC is retrying a call during a merge or transfer, and number format is not the question.
Where the number comes from
Microsoft's Direct Routing SIP protocol page describes how Teams handles an incoming call from the SBC. Teams first finds the tenant, using the SBC's name in the Contact header. It then takes the phone number in the Request-URI of the INVITE and performs a reverse number lookup in that tenant, matching the number to a user SIP address. The page gives this example of the first line of an incoming INVITE:
INVITE sip:+18338006777@sip.pstnhub.microsoft.com SIP /2.0
The same page says the phone number must contain a plus sign (+). It says the From header is used to match the caller's number against the callee's blocked number list and to look up the caller's name, and that lookup also needs the plus sign. A number that reaches Teams in a national format, with no plus sign and no country code, does not meet that requirement.
The page adds that Microsoft does not support a third-party SIP proxy or user agent server between the Microsoft SIP proxy and the paired SBC if that device might modify the Request-URI the SBC created.
Likely causes
Microsoft's 404 page gives one cause: the number format of the SBC or trunk provider does not match the format assigned to the user or resource account. The first three rows of the table are that format mismatch. The last three rows are our own reading of Microsoft's SIP protocol and phone-number pages.
| Where the mismatch sits | What Teams sees |
|---|---|
| The PSTN trunk provider sends the called number in a national or local format | A Request-URI with no plus sign or country code |
| The SBC rewrites the called number on the way to Teams | A different number from the one the provider sent |
| The number assigned to the user in Teams is not in E.164 | A Teams-side value that no Request-URI can match |
| The call reaches the wrong tenant | A lookup in a tenant that does not hold the number |
| A device between the SBC and Teams changes the Request-URI | A number the SBC did not create |
| The number was changed recently | A lookup that Teams has not finished updating |
On the last row, Microsoft's manage-phone-numbers page says that because of latency between Microsoft 365 and Teams, it can take up to 24 hours for users to be enabled after a number is assigned.
Prove the cause before changing anything
All of these steps only read.
-
Note the exact time of a failed call and the dialled number. The SBC sits on both sides of the exchange, so its call log or SIP trace is where the INVITE it sent and the 404 it received can both be read.
-
In the SBC's SIP trace for that call, read the first line of the INVITE sent to sip.pstnhub.microsoft.com. Compare the user part of the Request-URI with the example above. Check for a plus sign at the start and a country code.
-
In the same trace, read the 404 response and confirm the Microsoft code is 511404 rather than 10202.
-
In the Teams admin center, go to Users > Manage users, select the user, open the Account tab and read the value under Assigned phone number. Microsoft's manage-phone-numbers page gives this path. Compare it character by character with the Request-URI number from step 2.
-
For a resource account, such as one behind an auto attendant or call queue, read its number in the Teams admin center record for that account. That is our own advice; Microsoft's 404 page only says the same format rule applies to resource accounts.
-
Read the user's voice settings. Microsoft's outbound-calls page gives one more read-only command for checking a user's voice settings in Teams PowerShell, and it lists OnPremLineURI among the fields it shows:
Get-CsOnlineUser -Identity <UserId> | fl Identity,EnterpriseVoiceEnabled,HostedVoiceMail,OnPremLineURI
Fix
Choose the side that is wrong. Microsoft's page names two places, the SBC or PSTN trunk provider, and the number assigned to the user or resource account. Our own advice: change one side and test, because changing both at once makes the cause impossible to tell afterwards.
Route 1: correct the called-number format at the SBC or trunk provider
Write down the current called-number or number-manipulation rule on the SBC for calls towards Teams, and the time. If the provider controls the format, write down the format they say they send.
Risk: the next step changes how the SBC rewrites called numbers for every call that rule matches, so a wrong rule can break calls to users who work today. Make the change in a maintenance window, and test one number before relying on it.
Change the rule so the called number is sent to Teams in E.164 form with a plus sign at the start, the same format assigned to the user. If the provider sends the number, ask the provider to change what they send instead.
To undo it: set the rule back to the value you wrote down, in the same place on the SBC, or ask the provider to restore the format they sent before.
Route 2: correct the number assigned to the user or resource account
Use this route only when the proof showed that the assigned number is the wrong value.
Write down the number currently shown under Assigned phone number for the user (or that none is assigned), the phone number type, and the time. Microsoft's page itself says to make a note of the assigned number before editing it.
Risk: the next step changes the number that callers dial to reach this user, and Teams sends an email to the user with the new number unless you turn that option off (Microsoft says it is on by default). Microsoft says that because of latency between Microsoft 365 and Teams it can take up to 24 hours for users to be enabled after a number is assigned. Calls to the old number stop matching this user.
In the Teams admin center, go to Users > Manage users, select the user and open the Account tab. Under Assigned phone number, select Edit. In the side panel, set Phone number type to the connectivity type that supplies the number, find the new number in Assigned phone number, and select Save. Microsoft's page says that for Direct Routing numbers you have not uploaded to Teams, you type the number in manually.
For PowerShell, Microsoft's page shows this form for Direct Routing numbers, with the number in E.164 format as in its examples:
Set-CsPhoneNumberAssignment -Identity <user> -PhoneNumber <phone number> -PhoneNumberType DirectRouting
To undo it: set Assigned phone number back to the number you wrote down; if none was assigned, select None in the same drop-down menu. Putting the number back is a change too, and the email option applies again, so turn it off first if you do not want a second email. If you use the cmdlet, use the phone number type you wrote down.
Confirm the fix
- A test call from outside the business to the affected number rings the Teams user, and the SBC trace no longer shows 404 with 511404.
- The Request-URI in the SBC trace now carries the plus sign and country code, matching the value under Assigned phone number.
- Microsoft's Direct Routing planning page lists validating inbound and outbound PSTN calling as part of verifying a deployment, so test at least one resource account number as well as one user.
- If the change was to the Teams side, wait the 24 hours Microsoft mentions before concluding it has failed.
What to watch afterwards
- New numbers added at the provider. A new range delivered in a national format brings the fault back for those numbers only.
- Numbers assigned to users by typing them in. Microsoft's page notes that Direct Routing numbers not uploaded to Teams are entered manually, which is where a missing plus sign is easiest to introduce.
- Code 10202 in the same trace. It means the SBC retried a call during a merge or consultative transfer, which is a separate setting on the SBC.
- Calls that fail after a number is moved from one user to another, within the 24 hours Microsoft describes.
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 "You're missing out! Ask your admin to enable Microsoft Teams" when signing inTeams says 'You're missing out! Ask your admin to enable Microsoft Teams'? Microsoft's causes: Education tenant not enabled, or Exploratory access blocked.Read article
Risks and limits
These steps are drawn from Microsoft's pages and have not been run or lab-tested. The guidance applies to Direct Routing PSTN calls and not to Calling Plan or Operator Connect numbers.
Number changes affect real callers. A number that stops matching a user can leave a reception line or call queue unreachable until it is corrected, so make changes outside business hours where you can. Microsoft supports Direct Routing only with certified devices and says to contact the SBC vendor's customer support first.
Sources
- SIP response code 404 — Microsoft Learn, page dated 9 November 2026, accessed 4 December 2026
- Direct Routing - SIP protocol — Microsoft Learn, page dated 21 August 2026, accessed 4 December 2026
- Resolve issues that affect outbound Direct Routing calls — Microsoft Learn, page dated 23 November 2026, accessed 4 December 2026
- Manage phone numbers for users — Microsoft Learn, page dated 28 May 2026, accessed 4 December 2026
- Plan Direct Routing — Microsoft Learn, page dated 12 November 2026, accessed 4 December 2026
This article was originally published on .