Forum Discussion
Direct Routing, Multi-Tenant problem
- Sep 22, 2020
Hi fowler_23, LinusCansby , I lost my user account because I had to delete my old tenant, that solved the problem, I'm lucky that was only a test tenant, now everything works fine with the setup steps you both told me.
Hope this helps someone else.
Thank you!
Regards!
Hi LinusCansby , I already added the domains sbc1.domain.com, sbc2.domain.com, sbc3.domain.com and sbc4.domain.com in Office 365 admin center, my problem is that I can't add a second SBC ( like sbc2.domain.com ) on the direct routing ( Teams admin center ), I just have one working SBC ( sbc1.domain.com ).
Thank you for the response.
Regards!
- fowler_23Sep 11, 2020Iron Contributor
Hi,
You sound like you've done the initial bit correctly by adding the SBC FQDN's into O365 as an extra domain and then adding a user to that domain with the correct license (E1\E3\E5)
When you say Multi-tenant? Are you hosting the SBC's for a number of customers??
If so, on the customer tenant, do not use New-CsOnlinePSTNGateway. This will remain blank.
Instead define them on the Voice Routes so for example to have Active\Active on sbc1 and sbc2, you would do New-CsOnlineVoiceRoute -Name "UK-Mobile" -Priority 1 -OnlinePSTNUsage "UK-Mobile" -OnlinePSTNGatewayList sbc1.domain.com, sbc2.domain.com -NumberPattern '^\+44(7([1-57-9]\d{8}|624\d{6}))$' -Description "UK Mobile Calls"And so forth for your different dial plans. Calls will alternately go out over either SBC based on the matched number pattern. If you wanted one to be a backup then you would run the same again but change the priority number. It would try the SBC of the higher priority first before continuing down.
Hope that helps.
- aacostaSep 11, 2020Copper Contributor
Hi fowler_23, thank you for your response, I want to offer SIP trunks to more than 1 MS Teams customer, so, that's why I have 4 SBCs, each one with unique IP address.
This is what I want to have when I get a working Multi Tenant service:
SBC1
customer1.sbc1.domain.com
customer2.sbc1.domain.com
...
SBC2
customer1.sbc2.domain.com
customer2.sbc2.domain.com
...
SBC3
customer1.sbc3.domain.com
customer2.sbc3.domain.com
...
SBC4
customer1.sbc3.domain.com
customer2.sbc4.domain.com
...
I did what you told me on powershell, I'm not using the New-CsOnlinePSTNGateway.
When I use New-CsOnlineVoiceRoute for the sbc2.domain.com ( or even sbc3 and sbc4 ) ( of course this domains are just an example, I'm not showing the real domain names) I see the next error message:
Cannot find specified Gateway "sbc2.domain.com".
+ CategoryInfo : InvalidArgument: (Description=;Nu...Name=route_test:OnlineRoute) [New-CsOnlineVoiceRoute], ArgumentException
+ FullyQualifiedErrorId : CustomValidationFailed,Microsoft.Rtc.Management.Internal.NewOnlineVoiceRouteCmdlet
+ PSComputerName : admin3a.online.lync.comWith sbc1.domain.com I don't have any problem adding it using New-CsOnlineVoiceRoute, that's why I don't know if I have to wait some days for all the configuration to be reflected to all Microsoft servers for sbc2.domain.com, sbc3.domain.com an sbc4.domain.com
Regards!
- fowler_23Sep 14, 2020Iron Contributor
That should be fine as long as you have customer1.sbc2.domain.com configured as a domain within that tenant. Then a user assigned to that domain with an O365 license (E1,E3 or E5).
And customer1.sbc2.domain.com as a public FQDN going to sbc2.domain.com
When I say don't use New-CsOnlinePSTNGateway. You would use that on the base domain (your domain as the carrier) so you would run that command on sbc1.domain.com, sbc2.domain.com etchttps://docs.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants
Your error message that you pasted just says sbc2.domain.com. Not sure if you removed the preceding section because if that is in your customer tenant, then as per your preferred setup. The OnlineVoiceRoute should state customer1.sbc1.domain.com, customer1.sbc2.domain.com which matches the added domain specified in the customer tenant.
And then to reiterate, sbc1.domain.com, sbc2.domain.com only exists in your carrier tenant.
Hopefully that gives you more assistance.