few weeks ago I was stuck creating a new PSTN Gateway for Teams Direct Routing due to a strange error.
This is the PS command (FQDN masked)
New-CsOnlinePSTNGateway -Fqdn sbc01.domain.com -SipSignallingPort 5061 -MaxConcurrentSessions 10 -Enabled $true
and this is the error
Can not use the “sbc01.domain.com” domain as it was not configured for this tenant
Obviously the “domain.com” domain was correctly configured on O365, but something was not working
A quick PS command executed on SfB Online found the cause of the issue
Get-CsTenant | fl Tenantid,Domain*
The “domain.com” domain was present in the Domains field, but it was MISSING in the DomainUrlMap field, where was listed only the Customer’s Tenant domain .onmicrosoft.com
I opened a Support Ticket, they ask me to:
– create a Global Admin account in Cloud (not synced with AADC) with a UPN @domain.com and not @domain.onmicrosoft.com
– assign a E3 Licence
After few days, the above command return with the domain.com domain in the DomainUrlMap.
Now I was able to complete the New-CsOnlinePSTNGateway PS Command and proceed to add a new Teams Direct Routing deployment!
To be sure this was the real solution for this issue, I’ve changed the UPN and SIP Uri of this Admin account to @domain2.com, after few hours the @domain2.com appeared in the DomainUrlMap field.
I hope this could help some of you.