Forum Discussion
Microsoft Teams Direct Routing Outbound Calls not working (error 504)
Hello,
I am trying to configure Direct Routing on my tenant, using my carrier's hosted multi-tenant SBC.
They connected to my tenant with powershell and made all the needed configurations with these Powershell commands, after they validated the SBC domain in my office 365 tenant and created a user with that domain:
- Set-CsOnlinePstnUsage -Identity Global -Usage @{Add ="TeamsVoice"}
- New-CSOnlineVoiceRoute -Identity "DefaultRoute" -NumberPattern ".*" -OnlinePstnGatewayList <sbc fqdn> -Priority 1 -OnlinePstnUsages "TeamsVoice"
- New-CsOnlineVoiceRoutingPolicy "VP-TeamsUser" -OnlinePstnUsages "TeamsVoice"
- Set-CsUser -Identity user@domain.com -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:<phonenumber>
- Grant-CsOnlineVoiceRoutingPolicy -Identity "user@domain.com" -PolicyName "VP-TeamsUser"
Don't need to add the SBC because of the multi-tenant config as specified in this article https://docs.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants
Inbound calls are working correctly, but outbound calls are not.
My carrier's SBC is not receiving anything, and if I go to my PSTN direct routing report I get the SIP Error 504 "Unable to deliver INVITE: No such host is known" with the microsoft final code 569002.
My carrier believes it is a Microsoft Teams backend problem because they have other customers with the same config and they work properly.
What can I do? I also opened a ticket with Microsoft but I wanted to double up by also asking in here.
My user has got Office 365 E3 + Microsoft Phone System licenses and I have access to the number dial pad in the calls section of the app.
Thanks for the help
Ok me and my carrier found the issue.
The DNS record for the SBC FQDN was not properly set, thus not redirecting to the SBC IP.
12 Replies
- My-UsernameCopper Contributor
Off-topic question: How did you generate the report with the cause codes for the failed calls?
This part below, I have no idea how to do this and I need to know why some outbound calls are failing from my Teams Direct Routing environment.
My carrier's SBC is not receiving anything, and if I go to my PSTN direct routing report I get the SIP Error 504 "Unable to deliver INVITE: No such host is known" with the microsoft final code 569002.
Thanks
Joe
- bluecatCopper Contributor
My-Username , you can generate the report at Microsoft Teams Admin Center > Analytics & Reports > Usage Reports > View reports > PSTN and SMS (Preview) Usage > Last 7 days > Run Report
Once the report gets generated, on the report, switch to the Direct Routing tab.
- My-UsernameCopper ContributorThank you, I hadn't dug very deep into that tool, it has more data than I realised 🙂
- LopiclCopper Contributor
Ok me and my carrier found the issue.
The DNS record for the SBC FQDN was not properly set, thus not redirecting to the SBC IP.
- SergioGarayCopper Contributorwhere it was wrong? in the domains in office365 or in the SBC side? we are having the exact same issue.
- bluecatCopper ContributorCan you expand on what was not correctly configured on the DNS record? I'm having exactly the same issue. Thanks in advance.
- LopiclCopper Contributor
bluecat In our case the DNS A record for the SBC was misspelled.
For instance instead of sbc.contoso.com it was set as sbv.contoso.com, so it was not possible to reach, as teams was looking for sbc.contoso.com.
From what I understood this error comes from a misspelled SBC hostname, or unreachable DNS name.