Forum Discussion
VoipGuyUK
Jun 26, 2020Copper Contributor
Direct routing to multi tenant users without MS hosted phone numbers
Hi
I want to setup a multi tenant system I have read the guide MS supplied but I'm stuck with this scenario. I have my PSTN numbers hosted with my supplier. I want to route calls using direct routing to my customers.
I want the below:
PSTN > My Platform > user@customerA.sbc1.mydomain.com
But my customers either have onmicrosoft.com or customerdomain.com domains set to their team users and not my subdomain. So how can I route calls to these individual users or teams as they will not have a MS hosted number that I can route to?
When you write "My Platform" is that a multi tenant SBC you have setup? You have to route the calls to the correct SIP trunk for each customer from your SBC and to the PSTN number of the user, not to the SIP address.
Your customers have to add a subdomain with your domain in their tenant to be able to use your multi tenant Direct Routing setup.
https://docs.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants
When you write "My Platform" is that a multi tenant SBC you have setup? You have to route the calls to the correct SIP trunk for each customer from your SBC and to the PSTN number of the user, not to the SIP address.
Your customers have to add a subdomain with your domain in their tenant to be able to use your multi tenant Direct Routing setup.
https://docs.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants
- VoipGuyUKCopper Contributor
LinusCansby My Platform is my existing setup used for my normal VOIP traffic, of which I have added a SBC specifically to deal with MS Teams. This then would give my customers the option of delivering calls to their team users.
In my 1st test but not in a multi tenant setup I was delivering the call to the users sip address using direct routing. Which is really what I expected to do going forward. As I said the PSTN numbers are not hosted with MS but my other provider and porting them to MS is not an option.
So how can I get the calls to the user? Can I add a number to a user / team voice routing profile without actually needing that number to be hosted with MS?- Ryan SteeleBronze Contributor
VoipGuyUK wrote:Can I add a number to a user / team voice routing profile without actually needing that number to be hosted with MS?
Yes. You run a command like
Set-CsUser -Identity "spencer.low@contoso.com" -OnPremLineURI tel:+14255388797 -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
in the customer's tenant, as documented at https://docs.microsoft.com/en-us/microsoftteams/direct-routing-enable-users#configure-the-phone-number-and-enable-enterprise-voice-and-voicemail .