Forum Discussion

JFM_12's avatar
JFM_12
Iron Contributor
Oct 23, 2025

Overview where a SBC is used

Hello

Is there a Powershell to see where a SBC is used in the Voice Routings and other configurations.

Thank you

JFM_12

2 Replies

  • JFM_12​ - Could you please confirm if your issue resolved with above information or are you still looking for additional information?

  • @JFM_12 - Thanks for bringing this issue to our attention. 

    Yes, you can use Microsoft Teams PowerShell to find where a Session Border Controller (SBC) is used in Voice Routing and other Direct Routing configurations.

    Here are some useful PowerShell commands:

    1. List all SBCs registered in Teams:
      Get-CsOnlinePSTNGateway
    2. Find Voice Routes using a specific SBC:
      Replace <SBCFqdn> with your SBC’s FQDN.
      Get-CsOnlineVoiceRoute | Where-Object { $_.PstnGatewayList -contains "<SBCFqdn>" }
    3. List all Voice Routes and their associated SBCs:
      Get-CsOnlineVoiceRoute | Select-Object Name, PstnGatewayList
    4. Find Voice Routing Policies using a specific Voice Route:
      Replace <VoiceRouteName> with the route name found above.
      Get-CsOnlineVoiceRoutingPolicy | Where-Object { $_.OnlineVoiceRoutes -contains "<VoiceRouteName>" }
    5. List all PSTN Usages and their associated Voice Routes:
      Get-CsOnlinePstnUsage

       

    References: 
    1. Get-CsOnlinePSTNGateway (MicrosoftTeams) | Microsoft Learn
    2. Configure call routing for Direct Routing - Microsoft Teams | Microsoft Learn

Resources