top of page
Search

Teams Direct Routing with Mediant VE Audiocode SBC (Part1)

This article (part1) will be helping you using your Azure subscription , to deploy a mediant VE SBC audiocode , and configure your tenant with direct routing connexion .


First of all we need to deploy our SBC on Azure :


to do that you need to have a subscription on your tenant : Log in your azure portal using the url : https://portal.azure.com/


then go to Subscription :



aften confirming that you have a valid subscription ; go to create new ressource :



then search for Audiocode Mediant VE :



click on create and then go through the basic configuration :


in the network configuration for my lab , i chose two network interface ( 1 for Teams and 1 for PSTN trunk) ; this how my deployement results look like :




from your SBC perspective you have a public IP adress and a lot of other informations :




to be able to create a new pstn getway on your tenant /SBC , you need to do two main configurations :


the first one is giving a FQDN to your public ip adress ;i will use my manager

dns records to do that; using a type A dns record :


second thing to do is to verify this fqdn on our tenant , to do this , let go to
















you can then add your domain and verify it using different Dns record ( dont forget to create a user with at least a E3 licence using this new fqdn , if you dont do that , it won't work)




let's try connect to this fqdn and login using the user/Password with chose in the azure mediant deployement :



we have then access to our gui interface of our SBC mediant VE


Teams Direct routing configurtion :


you have two ways to configure your direct routing , the first one is the TAC : Teams Admin Center :




i chose for my lab , to do that through Powershell Commands ; this is a full example that you can modify and use :




$sbcDR = 'sbc*.*******.com'




#############################
#Online PSTN Gateway
#############################
New-CsOnlinePSTNGateway -Fqdn sbc*.*******.com -SipSignalingPort 5061 -ForwardCallHistory $true -ForwardPai $true -SendSipOptions $true -MaxConcurrentSessions 30 -Enabled $true

#############################
#PSTN Usages
#############################
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-Urgence'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-National'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-GratuitSpecial'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-AutoriseSpecial'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-BusinessSpecial'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-PremiumSpecial'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-International'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add='PU-SansRestriction'}

#############################
#OnlineVoiceRoute
#############################


New-CsOnlineVoiceRoute -Identity "VR-Urgence" -NumberPattern "^(15|17|18|112|115|119|191|196|197|116\d{3})$" -OnlinePstnUsage "PU-Urgence" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-National" -NumberPattern "^(\+33)([12345679]\d{8})$" -OnlinePstnUsage "PU-National" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-GratuitSpecial" -NumberPattern "^(\+3380[0-9]\d{6}|3[01]\d{2})$" -OnlinePstnUsage "PU-GratuitSpecial" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-AutoriseSpecial" -NumberPattern "^(\+33810821821)$" -OnlinePstnUsage "PU-AutoriseSpecial" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-BusinessSpecial" -NumberPattern "^(\+338[12]\d{7}|3[2-9]\d{2}|118\d{3}|10\d{2})$" -OnlinePstnUsage "PU-BusinessSpecial" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-PremiumSpecial" -NumberPattern "^(\+3389\d{7})$" -OnlinePstnUsage "PU-PremiumSpecial" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-International" -NumberPattern "^(\+|00)(\d+)$" -OnlinePstnUsage "PU-International" -OnlinePstnGatewayList $sbcDR
New-CsOnlineVoiceRoute -Identity "VR-SansRestriction" -NumberPattern ".*" -OnlinePstnUsages "PU-SansRestriction" -OnlinePstnGatewayList $sbcDR


#############################
#OnlineVoiceRouting Policies
#############################

New-CsOnlineVoiceRoutingPolicy "Premium" -OnlinePstnUsages "PU-Urgence", "PU-National", "PU-GratuitSpecial","PU-AutoriseSpecial","PU-BusinessSpecial","PU-PremiumSpecial","PU-International","PU-SansRestriction" -Description "Toutes destinations"
#Destinations nationales avec Premium
New-CsOnlineVoiceRoutingPolicy "Medium" -OnlinePstnUsages "PU-Urgence", "PU-National", "PU-GratuitSpecial","PU-AutoriseSpecial" 
#Destinations internationales sans Premium
New-CsOnlineVoiceRoutingPolicy "Light" -OnlinePstnUsages "PU-Urgence", "PU-National", "PU-GratuitSpecial" 

#############################
# Dialplan
#############################

New-CsTenantDialPlan -Identity "Anasstechtime Dial Plan"



$V1=New-CsVoiceNormalizationRule -Parent "Anasstechtime Dial Plan" -Name NR-Urgence -Description 'Numeros urgences' -Pattern '^0?(15|17|18|112|115|119|191|196|197|116\d{3})$' -Translation '$1' -IsInternalExtension $false -InMemory
$V2=New-CsVoiceNormalizationRule -Parent "Anasstechtime Dial Plan" -Name NR-NumeroCourt -Description 'Numeros courts' -Pattern '^0?(\d{4}|\d{6})$' -Translation '$1' -IsInternalExtension $false -InMemory
$V3=New-CsVoiceNormalizationRule -Parent "Anasstechtime Dial Plan" -Name NR-National -Description 'Numeros Nationaux' -Pattern '^(\+330?|0)(\d{9})$' -Translation '+33$2' -IsInternalExtension $false -InMemory
$V4=New-CsVoiceNormalizationRule -Parent "Anasstechtime Dial Plan" -Name NR-International -Description 'Numeros Internationaux' -Pattern '^(\+|00)(\d+)$' -Translation '+$2' -IsInternalExtension $false -InMemory
Set-CsTenantDialPlan -Identity "Anasstechtime Dial Plan" -NormalizationRules @{add=$V1,$V2,$V3,$V4}

results are :

SBC:

Voice Routes :


voice routing policies :



Dial Plans :




We will continue our configuration on SBC side for next article .


Thanks for reading.


259 views0 comments
bottom of page