SOLVED

Microsoft Teams Direct Routing Outbound Calls not working (error 504)

%3CLINGO-SUB%20id%3D%22lingo-sub-1976410%22%20slang%3D%22en-US%22%3EMicrosoft%20Teams%20Direct%20Routing%20Outbound%20Calls%20not%20working%20(error%20504)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1976410%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20configure%20Direct%20Routing%20on%20my%20tenant%2C%20using%20my%20carrier's%20hosted%20multi-tenant%20SBC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThey%20connected%20to%20my%20tenant%20with%20powershell%20and%20made%20all%20the%20needed%20configurations%20with%20these%20Powershell%20commands%2C%20after%20they%20validated%20the%20SBC%20domain%20in%20my%20office%20365%20tenant%20and%20created%20a%20user%20with%20that%20domain%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3COL%3E%3CLI%3ESet-CsOnlinePstnUsage%20-Identity%20Global%20-Usage%20%40%7BAdd%20%3D%22TeamsVoice%22%7D%3C%2FLI%3E%3CLI%3ENew-CSOnlineVoiceRoute%20-Identity%20%22DefaultRoute%22%20-NumberPattern%20%22.*%22%20-OnlinePstnGatewayList%20%3CSBC%20fqdn%3D%22%22%3E%20-Priority%201%20-OnlinePstnUsages%20%22TeamsVoice%22%3C%2FSBC%3E%3C%2FLI%3E%3CLI%3ENew-CsOnlineVoiceRoutingPolicy%20%22VP-TeamsUser%22%20-OnlinePstnUsages%20%22TeamsVoice%22%3C%2FLI%3E%3CLI%3ESet-CsUser%20-Identity%20user%40domain.com%20-EnterpriseVoiceEnabled%20%24true%20-HostedVoiceMail%20%24true%20-OnPremLineURI%20tel%3A%3CPHONENUMBER%3E%3C%2FPHONENUMBER%3E%3C%2FLI%3E%3CLI%3EGrant-CsOnlineVoiceRoutingPolicy%20-Identity%20%22user%40domain.com%22%20-PolicyName%20%22VP-TeamsUser%22%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20need%20to%20add%20the%20SBC%20because%20of%20the%20multi-tenant%20config%20as%20specified%20in%20this%20article%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fdirect-routing-sbc-multiple-tenants%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fdirect-routing-sbc-multiple-tenants%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EInbound%20calls%20are%20working%20correctly%2C%20but%20outbound%20calls%20are%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20carrier's%20SBC%20is%20not%20receiving%20anything%2C%20and%20if%20I%20go%20to%20my%20PSTN%20direct%20routing%20report%20I%20get%20the%20SIP%20Error%20504%20%22%3CSPAN%3EUnable%20to%20deliver%20INVITE%3A%20No%20such%20host%20is%20known%22%20with%20the%20microsoft%20final%20code%26nbsp%3B569002.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Immagine%202020-12-10%20161457.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F239582i8E1655B4AEE8141F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Immagine%202020-12-10%20161457.png%22%20alt%3D%22Immagine%202020-12-10%20161457.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMy%20carrier%20believes%20it%20is%20a%20Microsoft%20Teams%20backend%20problem%20because%20they%20have%20other%20customers%20with%20the%20same%20config%20and%20they%20work%20properly.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20can%20I%20do%3F%20I%20also%20opened%20a%20ticket%20with%20Microsoft%20but%20I%20wanted%20to%20double%20up%20by%20also%20asking%20in%20here.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EMy%20user%20has%20got%20Office%20365%20E3%20%2B%20Microsoft%20Phone%20System%20licenses%20and%20I%20have%20access%20to%20the%20number%20dial%20pad%20in%20the%20calls%20section%20of%20the%20app.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20for%20the%20help%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1976410%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalling%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDirect%20Routing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1976999%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20Direct%20Routing%20Outbound%20Calls%20not%20working%20(error%20504)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1976999%22%20slang%3D%22en-US%22%3E%3CP%3EOk%20me%20and%20my%20carrier%20found%20the%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20DNS%20record%20for%20the%20SBC%20FQDN%20was%20not%20properly%20set%2C%20thus%20not%20redirecting%20to%20the%20SBC%20IP.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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:

  1. Set-CsOnlinePstnUsage -Identity Global -Usage @{Add ="TeamsVoice"}
  2. New-CSOnlineVoiceRoute -Identity "DefaultRoute" -NumberPattern ".*" -OnlinePstnGatewayList <sbc fqdn> -Priority 1 -OnlinePstnUsages "TeamsVoice"
  3. New-CsOnlineVoiceRoutingPolicy "VP-TeamsUser" -OnlinePstnUsages "TeamsVoice"
  4. Set-CsUser -Identity user@domain.com -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:<phonenumber>
  5. 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.

 

Immagine 2020-12-10 161457.png

 

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

1 Reply
best response confirmed by Lopicl (New Contributor)
Solution

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.