/settings/pbx) → Connect a PBX → PBX platform → Microsoft Teams (“Via Session Border Controller”). The tile opens on Forward calls. It starts on TLS, with Media Encryption (SRTP) set to Require, IP Whitelist authentication, and G.711 u-law, A-law and G.722 HD.What you need first
- Teams admin access to the Teams admin center, and a Microsoft Teams PowerShell session if you prefer commands.
- A Teams Phone licence for each user who will dial the AI.
- An SBC certified for Direct Routing, such as AudioCodes, Ribbon or Oracle, with a public FQDN and a publicly trusted certificate for it. The domain part of that FQDN must be registered in your Microsoft 365 tenant, and
*.onmicrosoft.comis not allowed. - The SBC’s public IP address, for the IP Whitelist.
- A SmartAlex agent that is ready to answer, and the number it will answer on in Sidebar → Calls → Numbers (
/phone-numbers). - Firewall access from the SBC to
sip.voice.getsmartalex.comon port5061(or5060). This host has no fixed IP list, so use an FQDN rule.
How it connects
This sequence shows a call from Microsoft Teams through your SBC to SmartAlex.Create the trunk in SmartAlex
Open PBX Extensions
/settings/pbx). Click Connect a PBX.Pick Microsoft Teams


Pick Microsoft Teams ("Via Session Border Controller").
Fill in the form
Create the trunk
Set up the SBC
The SBC is your own and its menus depend on its maker, so follow your SBC vendor’s Direct Routing guide for where each setting lives. The values are these.Set up Teams
These steps follow the Teams admin center and Microsoft’s Direct Routing articles on Microsoft Learn, last updated in 2026. Menu names move now and then, so the PowerShell commands are given as well.Add the SBC
Open Direct Routing
Add the SBC
Fill in the SBC
Route calls to the AI
Create a PSTN usage
SmartAlex, then select Apply.Create the voice route
SmartAlex AI, set the priority, and set the dialed number pattern to match the numbers the AI answers, for example ^\+27115551234$.Enrol the SBC
Add the PSTN usage
SmartAlex, then select Apply. Select Save.Create a voice routing policy
SmartAlex AI. Under PSTN usage records, select Add PSTN usage, pick SmartAlex, select Apply, then Save.Assign the policy to users
SmartAlex AI and select Save.Give the user a Direct Routing number
Send the SBC’s calls to SmartAlex
Route on the SBC
Make sure SmartAlex knows the number
/phone-numbers) with an agent assigned. If it lives with your own carrier, email support@getsmartalex.com about adding it.Check it worked
Teams sees the SBC
Get-CsOnlinePSTNGateway -Identity sbc.example.com in Teams PowerShell and check Enabled is True. On the SBC, check it receives 200 OK to its SIP OPTIONS.The card shows a status
A call reaches the AI
A transfer works
Next
Fill the extension directory
Test before go-live
Questions people ask
Can I connect Teams without an SBC?
Can I connect Teams without an SBC?
Why does the tile require encryption?
Why does the tile require encryption?
Can the AI transfer back to a Teams user?
Can the AI transfer back to a Teams user?
Calls reach the SBC but not SmartAlex
Calls reach the SBC but not SmartAlex
Teams will not accept my SBC's FQDN
Teams will not accept my SBC's FQDN
*.onmicrosoft.com name is not allowed. Use a name such as sbc.example.com on a domain you own and have added to the tenant.

