Teams Derived Trunk PS Configuration

Frequent Visitor

I've seen several posts on this topic but none of them seem to work in our environment:

Carrier Tenant


Customer Tenant


That all works fine if I create the OnlinePSTNGateway in the customer tenant.  My understanding though, is that I can simply specify the carrier FQDN during Set-CsOnlineVoiceRoute.  However, when I do that, the customer tenant complains that it can't find the carrier SBC.



PS C:\Windows\system32> get-csonlinesipdomain

Name                                      Status 
----                                      ------ Enabled  Enabled                                 Enabled                     Enabled

PS C:\Windows\system32> Set-CsOnlineVoiceRoute -id "Domestic" -NumberPattern ".*" -OnlinePstnGatewayList -OnlinePstnUsages "Carrier"
Cannot find specified Gateway "".
    + CategoryInfo          : InvalidArgument: (Description=;Nu...*;Name=Domestic:OnlineRoute) [Set-CsOnlineVoiceRoute], ArgumentException
    + FullyQualifiedErrorId : CustomValidationFailed,Microsoft.Rtc.Management.Internal.SetOnlineVoiceRouteCmdlet
    + PSComputerName        :




2 Replies



I guess that the "" is a SBC that is provided by your carrier and they are using something called Super Trunk, that means that they have one trunk for all their customers between themselves and Microsoft.


So the high level setup for you would be:

  1. Add as a domain in your Office 365 tenant. You have to send some DNS information to your carrier so they can add it in their DNS.
  2. Verify the domain and add a users with any license (E1, E3, E5) and that new domain in their username.
  3. Add PSTN Usage (New-CsOnlinePstnUsage), VoiceRoute (New-CsOnlineVoiceRoute),  VoiceRoutePolicys (New-CsOnlineVoiceRoutingPolicy) and Calling Policy (New-CsTeamsCallingPolicy)
  4. Assign VoiceRoutePolicy (Grant-CsOnlineVoiceRoutingPolicy ) and Calling Policy (Grant-CsTeamsCallingPolicy) to a user and Enable Enterprise Voice with a LineURI (Set-CsUser).