Forum Discussion
Derived Trunk for Teams direct routing hosting model
swerner I am also trying to configure the customer's tenant and confused with the documentation. Your assistance would be really helpful, since you have a working scenario.
I am confused at the point of a voice routing creation. If I execute the command on a customer's tenant:
New-CsOnlineVoiceRoute -Name “Example” -NumberPattern ‘^\+\d+’ -OnlinePstnGatewayList sbc1.example.com -Priority 1 -OnlinePstnUsages “Example”
I am getting an error, that it cannot find the specified PSTN usage. Could you please be so kind to help me with this?
P.S. The customer's subdomain has been created and added to the configuration.
Thank you in advance.
Hi Vasileios_T,
Before you can add the Voice Routes, you need to add the tenant-specific sub-domain to the customer's Office 365 tenant, as an additional domain.
EG:
Carrier: hosted.example.com
Cust 1: cust1.hosted.example.com
Once you've added the sub-domain for the customer & added the TXT record to the carrier's DNS to authorise the sub-domain addition, you then create a dummy user within the new domain, with a S4B Online license at least.
EG:
test.user@cust1.hosted.example.com - licensed with E3/E5 etc.
The license only needs to be assigned for 30/60 minutes while the platform activates the domain.
Following this, you should then be able to create the voice routes etc. as you've attempted.
- godrilFeb 23, 2020Brass Contributor
Hi seanwerner
sorry for replying old thread. I am curious with the part where you assigned E1/E3 + PS on dummy user at derived subdomain inside customer tenant. As I am sure that I have two tenants with derived domain that didnt need to enable these licenses since early 2019. Is this latest requirement from MS?
- TeamsDRJun 11, 2020Copper Contributor
godril I tested this to see if you could assign just the E3 license to activate then remove the license, this stopped functions of the Direct routing from working, e.g. Outbound CLI.
FYI: you only need to assign an E3/E5 license not the phone system license to this dummy user on the subdomain, this is to activate this domain. never tried it with an E1 (does it work?)
- Vasileios_TOct 09, 2019Copper ContributorHello,
Thank you for your help and time.
The customer's subdomain already added and activated. Also, I didn't remove the licensed user, but still face the same issue when I am trying to create a new online voice route.
I execute the command in powershell using the customer's global admin details:
New-CsOnlineVoiceRoute -Identity“Example” -NumberPattern ‘^\+\d+’ -OnlinePstnGatewayList sbc1.example.com -Priority 1 -OnlinePstnUsages “Example”
The first error appears, indicating that it cannot find the specified PSTN usage.
If I define PSTN usage by executing the command below and try to create online voice route again, I receive an error that it cannot find the specified gateway.
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="Example"}
Could you please suggest what is wrong?
Thank you once again. - fanzhangrobOct 08, 2019Copper Contributor
Thanks for your help. I have done exactly all the steps you described. As shown in my previous reply the domain sbc30 has been added and shown in the 'DoaminUrlMap' from the command 'Get-CsTenant' . However I still failed on the 'Set-CsOnlineVoiceRoute' command.
- camilocucanchonApr 30, 2021Copper Contributor
Hello, you could fix this error, I have the same problem as you. Thank youfanzhangrob
- Vasileios_TOct 09, 2019Copper Contributor
After 2 days of researching I finally found the issue. Probably you have the same.
If you use in the carrier's tenant the main domain ( example: company.com) and assign to customers sbc.customer.company.com you have to add, verify and activate customer.company.com in the carrier's tenant also.
After that, you need to set PSTN usage by executing
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="Example"}and proceed with creating online voice route.
Hope it helps.
- TeamsDRDec 03, 2019Copper Contributor
I have been trying this and cannot get it to work correctly. I have even reverted the changes - back to original, and there is still no calls being direct in either direction, I did have this working with the previous model.
this is what i have done so far
1. added Carrier trunk - carrrier.trunk.com (Not sure if I should enable this or set capacity - can anyone answer this?)
2. registered tenant trunk and added tenant csonlinevoiceroute - tenant.carrier.trunk.com
3. confirmed all is correct but still no calls either inbound or outbound, it is being rejected each time from SIP to teams, and it is not even getting to the SBC when dialling from teams to SIP.
as there are so few documents on this subject, unless someone can point me in the direction of them... there are a lot of unanswered questions ..... I have put a couple above.
when I revert back and then configure using old method "pstngateway" it all works as it should without issues, not sure where I am going wrong, can anyone help?
is there any setting within a users profile that also need to be reset/removed?
when reverting should I set the EntreprisevoiceEnabled $false for the users prior to starting again?
I didn't as this can take along time to come back to life.
- Vasileios_TOct 09, 2019Copper ContributorI stuck exactly at the same point.(