SOLVED

Direct Routing Hosting Model

%3CLINGO-SUB%20id%3D%22lingo-sub-1674233%22%20slang%3D%22en-US%22%3EDirect%20Routing%20Hosting%20Model%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1674233%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3ECan%20someone%20tell%20me%20when%20I%20create%20a%20voice%20route%20with%20new-csonlinevoiceroute%20does%20the%20-OnlinePSTNGateway%20parameter%20need%20to%20match%20the%20name%20of%20the%20subdomain%20created%20that%20was%20based%20on%20the%20carrier%20domain%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%20I%20have%20a%20subdomain%20of%20customer1.dr.domain.com%20in%20the%20customer%20tenant%20environment%20that%20has%20been%20validated%20and%20activated%20and%20we%20have%20dr.domain.com%20in%20the%20carrier%20tenant%20for%20the%20base%20domain%20which%20has%20also%20been%20activated%20and%20validated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20carrier%20tenant%20we%20have%20run%20the%26nbsp%3BNew-CsOnlinePSTNGateway%20-Fqdn%20sbc1.dr.domain.com%20-SipSignallingPort%205061%20-MaxConcurrentSessions%202000%20-MediaBypass%20%24true%20-Enabled%20%24true%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20I%20can%20see%20those%20SBCs%20in%20the%20carrier%20tenant.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20when%20we%20run%20the%20new-csonlinevoiceroute%20using%20the%20fqdn%20of%20sbc1.dr.domain.com%20in%20the%20customer%20tenant%20we%20get%20an%20error%20stating%20cannot%20find%20the%20specified%20gateway.%20My%20question%20is%20do%20we%20need%20to%20run%20the%20new-csonlinevoiceroute%20and%20use%20the%20fqdn%20of%20customer1.dr.domain.com%20which%20will%20resolve%20to%20the%20IP%20address%20of%20the%20SBC.%26nbsp%3B%20If%20that%20is%20correct%20that%20FQDN%20doesn't%20match%20the%20SBC%20name%20we%20configured%20of%20sbc1.dr.domain.com%20but%20will%20it%20still%20work%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EConfused!%20and%20the%20documentation%20is%20not%20clear.%20Could%20anyone%20please%20point%20me%20in%20the%20right%20direction%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1674233%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECalling%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1675065%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Hosting%20Model%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1675065%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F614006%22%20target%3D%22_blank%22%3E%40RichTel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20your%20example%2C%20you%20wouldn't%20use%26nbsp%3B%3CSPAN%3Esbc1.dr.domain.com%20when%20doing%20new-csonlinevoiceroute.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThis%20is%20the%20carrier%20domain%20CsOnlinePSTNGateway.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20fact%2C%20if%20possible%20I%20would%20simplify%20it%20if%20you%20can.%20Just%20use%20sbc1.domain.com%20in%20the%20carrier%20domain.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThen%2C%20in%20the%20customer%20tenant%2C%20new-csonlinevoiceroute%20would%20be%26nbsp%3Bcustomer1.sbc1.domain.com.%20It%20will%20take%20the%20derived%20trunk%20from%20sbc1.domain.com.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20will%20need%20public%20A%20DNS%20records%20for%20customer1.sbc1.domain.com%20to%20point%20to%20the%20public%20IP%20of%20sbc1.domain.com%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOf%20course%2C%20you'll%20need%20a%20user%20in%20the%20customer%20tenant%20assigned%20to%20the%20domain%20customer1.sbc1.domain.com%20with%20an%20E1%5CE3%20or%20E5%20license%20in%20order%20to%20be%20able%20to%20run%20the%20new-csonlinevoiceroute%20cmdlet.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20think%20taking%20away%201%20of%20the%20sub%20domains%20if%20you%20can%20might%20simplify%20it%20if%20possible.%20if%20not%2C%20then%20your%20customer%20domain%20will%20need%20be%20customer1.sbc1.dr.domain.com%2C%20not%20customer1.dr.domain.com%20as%20it%20won't%20get%20the%20derived%20settings%20from%20the%20OnlineGateway%20as%20that's%20sbc1.dr.domain.com%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHope%20that%20helps.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1677049%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Hosting%20Model%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1677049%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F614006%22%20target%3D%22_blank%22%3E%40RichTel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20give%20you%20my%20setup%20which%20might%20help%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECarrier%20Domain%3A%26nbsp%3B%20contoso.com%3C%2FP%3E%3CP%3ECarrier%20Sub%20Domain%3A%20voice.contoso.com%3C%2FP%3E%3CP%3ECarrier%20OnlinePSTNGateway%3A%20voice.contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECustomer%20Domain%3A%20customer.com%3C%2FP%3E%3CP%3ECustomer%20Sub%20Domain%3A%20customer1.voice.contoso.com%3C%2FP%3E%3CP%3ECSOnlineVoiceRoute%3A%20customer1.voice.contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecustomer1.voice.contoso.com%20%26gt%3B%20Public%20A%20Record%20%26gt%3B%20Pointing%20to%20IP%20of%20voice.contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECustomer%20VoiceRoute%20picks%20up%20derived%20trunk%20from%20voice.contoso.com%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1677244%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Hosting%20Model%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1677244%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248051%22%20target%3D%22_blank%22%3E%40fowler_23%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20and%20this%20is%20basically%20what%20I%20have%20however%20I%20do%20not%20have%20a%20carrier%20subdomain%20defined%20do%20I%20need%20that%3F%20I%20hadn't%20read%20anywhere%20you%20needed%20that%2C%20I%20understood%20just%20a%20carrier%20base%20domain%20and%20tenant%20subdomains.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20when%20I%20create%20the%20carrier%20OnlinePSTNGateway%20I%20use%20the%20base%20domain%20as%20the%20FQDN%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20define%20the%20voice%20route%20in%20the%20customer%20tenant%20do%20I%20still%20have%20to%20add%20the%26nbsp%3B%20-OnlinePSTNGatewayList%26nbsp%3B%20parameter%20and%20add%20the%20FQDN%20of%20the%20OnlinePSTNGateway%20or%20is%20this%20derived%20some%20how%20auto-magically%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20your%20continued%20assistance!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi

Can someone tell me when I create a voice route with new-csonlinevoiceroute does the -OnlinePSTNGateway parameter need to match the name of the subdomain created that was based on the carrier domain?

 

For example I have a subdomain of customer1.dr.domain.com in the customer tenant environment that has been validated and activated and we have dr.domain.com in the carrier tenant for the base domain which has also been activated and validated.

 

In the carrier tenant we have run the New-CsOnlinePSTNGateway -Fqdn sbc1.dr.domain.com -SipSignallingPort 5061 -MaxConcurrentSessions 2000 -MediaBypass $true -Enabled $true 

and I can see those SBCs in the carrier tenant.

 

However when we run the new-csonlinevoiceroute using the fqdn of sbc1.dr.domain.com in the customer tenant we get an error stating cannot find the specified gateway. My question is do we need to run the new-csonlinevoiceroute and use the fqdn of customer1.dr.domain.com which will resolve to the IP address of the SBC.  If that is correct that FQDN doesn't match the SBC name we configured of sbc1.dr.domain.com but will it still work?

 

Confused! and the documentation is not clear. Could anyone please point me in the right direction?

 

Thank you.

6 Replies
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

Hi @RichTel 

 

In your example, you wouldn't use sbc1.dr.domain.com when doing new-csonlinevoiceroute.

This is the carrier domain CsOnlinePSTNGateway.

 

In fact, if possible I would simplify it if you can. Just use sbc1.domain.com in the carrier domain.

 

Then, in the customer tenant, new-csonlinevoiceroute would be customer1.sbc1.domain.com. It will take the derived trunk from sbc1.domain.com.

 

You will need public A DNS records for customer1.sbc1.domain.com to point to the public IP of sbc1.domain.com

 

Of course, you'll need a user in the customer tenant assigned to the domain customer1.sbc1.domain.com with an E1\E3 or E5 license in order to be able to run the new-csonlinevoiceroute cmdlet.

 

I think taking away 1 of the sub domains if you can might simplify it if possible. if not, then your customer domain will need be customer1.sbc1.dr.domain.com, not customer1.dr.domain.com as it won't get the derived settings from the OnlineGateway as that's sbc1.dr.domain.com

 

Hope that helps.

 

 

 

Highlighted

Hi @fowler_23

 

Hi @fowler_23 

 

Thanks for your reply. much appreciated.

I think my confusion here is around the OnlinePSTNGateway fqdn so you are basically saying that needs to match the carrier base domain? I was under the impression you could call this anything you liked provided it was a subdomain of the carrier base domain, so sbc1.carrierdomain.com.

The Voice route in the customer 1 tenant would point to customer1.carrierdomain.com as the PSTN Gateway List and the trunk would be derived from carrierdomain.com.

 

Thanks!

 

 

Highlighted

@RichTel 

 

Let me give you my setup which might help

 

Carrier Domain:  contoso.com

Carrier Sub Domain: voice.contoso.com

Carrier OnlinePSTNGateway: voice.contoso.com

 

Customer Domain: customer.com

Customer Sub Domain: customer1.voice.contoso.com

CSOnlineVoiceRoute: customer1.voice.contoso.com

 

customer1.voice.contoso.com > Public A Record > Pointing to IP of voice.contoso.com

 

Customer VoiceRoute picks up derived trunk from voice.contoso.com

 

Regards

 

 

Highlighted

Hi @fowler_23

 

Thanks and this is basically what I have however I do not have a carrier subdomain defined do I need that? I hadn't read anywhere you needed that, I understood just a carrier base domain and tenant subdomains.

 

So when I create the carrier OnlinePSTNGateway I use the base domain as the FQDN .

 

When I define the voice route in the customer tenant do I still have to add the  -OnlinePSTNGatewayList  parameter and add the FQDN of the OnlinePSTNGateway or is this derived some how auto-magically?

 

Thanks again for your continued assistance! 

 

 

 

Highlighted

@RichTel 

 

If you refer to https://docs.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants

 and under the section Register a Base Domain and subdomains. Their example has the carrier base domain as adatum.biz and then an additional domain customers.adatum.biz so my example follows Microsoft's logic.

 

No - you don't need to add PSTNOnlineGateway parameter to the customer tenant. That same document again. Search for Create a trunk and provision user. That gives some information there about derived trunks.

Highlighted

Hi @fowler_23 

 

OK thanks. I've had to change and create new domains now, I also have the complexity of load balancing between two sites which has driven the need to create new carrier subdomains, one for each SBC pair and also new customer domains based on the carrier subdomain. What an ache! 

 

It's clear to me that documentation needs updating and full explanations of how you achieve fail-over etc is required, that part is especially not clear.   

 

Thanks for your help!