Mediant SBC To Microsoft Teams Direct Routing With Local Media Optimization
Mediant SBC To Microsoft Teams Direct Routing With Local Media Optimization
Enterprise Model
Configuration Note Contents
Table of Contents
1 Introduction .........................................................................................................9
1.1 About Teams Direct Routing................................................................................... 9
1.2 Validated AudioCodes Version ............................................................................... 9
1.3 About AudioCodes SBC Product Series ................................................................. 9
1.4 Infrastructure Prerequisites................................................................................... 10
2 Direct Routing Local Media Optimization .......................................................11
2.1 Introduction........................................................................................................... 11
2.2 Typical Call Scenarios .......................................................................................... 12
2.2.1 Implemented Scenarios ....................................................................................... 13
2.2.1.1 Central SBC Scenario........................................................................... 13
2.2.1.2 Proxy SBC Scenario ............................................................................. 14
2.2.1.3 Local Media Optimization Modes .......................................................... 15
2.3 Online PSTN Gateway Configuration.................................................................... 15
2.3.1 Online PSTN Gateway Configuration (Office 365) - Proxy SBC Scenario ............. 15
2.3.2 Configure Online PSTN Gateway Configuration via UMP 365 (Optional) .............. 15
2.3.2.1 Create PSTN Gateway ......................................................................... 16
2.4 Call Scenario Example Topologies ....................................................................... 17
2.4.1 Always Bypass with Internal Teams User............................................................. 17
2.4.2 Always Bypass with External Teams User ........................................................... 18
2.4.3 Always Bypass with Teams User and SBC in Different Sites ................................ 19
2.4.4 Only for Local Users with Internal Teams User .................................................... 20
2.4.5 Only for Local Users with External Teams User ................................................... 21
2.4.6 Only for Local Users with Internal Teams User in Different Sites .......................... 22
2.5 Configuring SBC for Local Media Optimization (LMO) Proxy SBC ........................ 23
2.5.1 Prerequisites ....................................................................................................... 23
2.5.2 About the SBC Domain Name ............................................................................. 23
2.5.3 Validate AudioCodes' License ............................................................................. 24
2.5.4 Configure LAN and WAN IP Interfaces ................................................................ 25
2.5.4.1 Validate Configuration of Physical Ports and Ethernet Groups .............. 25
2.5.4.2 Configure LAN and WAN VLANs .......................................................... 26
2.5.4.3 Configure Network Interfaces................................................................ 27
2.5.5 Configure TLS Context ........................................................................................ 28
2.5.5.1 Configure the NTP Server Address ....................................................... 28
2.5.5.2 Create a TLS Context for Teams Direct Routing ................................... 29
2.5.5.3 Generate a CSR and Obtain the Certificate from a Supported CA ......... 31
2.5.5.4 Deploy the SBC and Root / Intermediate Certificates on the SBC.......... 33
2.5.6 Method of Generating and Installing the Wildcard Certificate ................................ 35
2.5.7 Deploy Baltimore Trusted Root Certificate ........................................................... 35
2.5.8 Configure Media Realms ..................................................................................... 36
2.5.9 Configure SIP Signaling Interfaces ...................................................................... 37
2.5.10 Configure Proxy Sets and Proxy Address ............................................................ 38
2.5.10.1 Configure Proxy Sets ............................................................................ 38
2.5.10.2 Configure Proxy Addresses .................................................................. 39
2.5.11 Configure Coder Groups...................................................................................... 40
2.5.12 Configure IP Profiles............................................................................................ 40
2.5.13 Configure IP Groups ............................................................................................ 42
2.5.14 Configure SRTP .................................................................................................. 44
2.5.15 Configure Message Condition Rules .................................................................... 44
2.5.16 Configure Classification Rules ............................................................................. 45
2.5.17 Configure Call Setup Rules.................................................................................. 46
2.5.18 Configure Message Manipulation Rules ............................................................... 47
2.5.19 Configure IP-to-IP Call Routing Rules .................................................................. 49
List of Figures
Figure 2-1: Central SBC Traffic Flow - User at “Home” (Internal) ....................................................... 13
Figure 2-2: Central SBC Traffic Flow - User is External ..................................................................... 13
Figure 2-3: Proxy SBC Traffic Flow - user at “home” (Internal) ........................................................... 14
Figure 2-4: Proxy SBC Traffic Flow - user is external ......................................................................... 14
Figure 2-5: Add New PSTN Gateway ................................................................................................ 16
Figure 2-6: Always Bypass with Internal Teams User ........................................................................ 17
Figure 2-7: Always Bypass with External Teams User ....................................................................... 18
Figure 2-8: Always Bypass with Teams User and SBC in Different Sites............................................ 19
Figure 2-9: Always Bypass with Internal Teams User ........................................................................ 20
Figure 2-10: Only for Local Users with External Teams User ............................................................. 21
Figure 2-11: Only for Local Users with Internal Teams User in Different Sites .................................... 22
Figure 2-12: Example of Registered DNS Names .............................................................................. 24
Figure 2-13: Network Interfaces in the Topology of the Proxy SBC .................................................... 25
Figure 2-14: Physical Ports Configuration Interface ........................................................................... 26
Figure 2-15: Ethernet Groups Configuration Interface........................................................................ 26
Figure 2-16: Configured VLAN IDs in Ethernet Device ....................................................................... 27
Figure 2-17: Configuration Example of the Network Interface Table ................................................... 28
Figure 2-18: Configuring NTP Server Address ................................................................................... 28
Figure 2-19: Configuration of TLS Context for Direct Routing............................................................. 30
Figure 2-20: Configured TLS Context for Direct Routing and Interface to Manage the Certificates .... 30
Figure 2-21: Example of Certificate Signing Request – Creating CSR................................................ 32
Figure 2-22: Uploading the Certificate Obtained from the Certification Authority................................. 33
Figure 2-23: Message Indicating Successful Upload of the Certificate ............................................... 33
Figure 2-24: Certificate Information Example ..................................................................................... 34
Figure 2-25: Example of Configured Trusted Root Certificates ........................................................... 34
Figure 2-26: Configuration Example Media Realms in Media Realm Table ........................................ 36
Figure 2-27: Configuration Example of SIP Signaling Interfaces ........................................................ 38
Figure 2-28: Configuration Example Proxy Sets in Proxy Sets Table ................................................. 39
Figure 2-29: Configuring Coder Group for Teams Direct Routing ....................................................... 40
Figure 2-30: Configuring Media Security Parameter .......................................................................... 44
Figure 2-31: Configuring Condition Table .......................................................................................... 45
Figure 2-32: Configuring Classification Rule ...................................................................................... 46
Figure 3-1: Proxy Set Status ............................................................................................................. 63
Figure A-1: Example of an 'INVITE' Message .................................................................................... 65
Figure A-2: Example of an 'INVITE' Message (External user) ............................................................ 66
Figure A-3: Example of an 'INVITE' Message (Internal User) ............................................................. 66
Figure A-4: Example of an 'INVITE' Message From Site to Teams ..................................................... 66
Figure A-5: Example of 'OPTIONS' message .................................................................................... 67
Figure C-1: IP Profile for Remote Sites and Proxy SBC ..................................................................... 73
Figure D-1: IP Profile for Remote Sites and Proxy SBC ..................................................................... 81
Figure D-2: AC Node for Proxy SBC.................................................................................................. 85
Figure D-3: AC Node for Remote SBC .............................................................................................. 85
Figure D-4: Enable Nodes ................................................................................................................. 86
Figure D-5: Add Connection .............................................................................................................. 86
Figure D-6: Established Connection .................................................................................................. 87
Figure D-7: Teams Voip-Peer............................................................................................................ 87
Figure D-8: SIPTrunk VoIP-Peer ....................................................................................................... 87
Figure D-9: Established Connection .................................................................................................. 87
Figure D-10: Add a Routing Rule for Incoming Call from Teams ........................................................ 88
Figure D-11: Add a Routing Rule for Incoming Call from SIP Trunk ................................................... 89
List of Tables
Table 1-1: Infrastructure Prerequisites ............................................................................................... 10
Table 2-1: DNS Names Registered by an Administrator for an Enterprise Office 365 Tenant ............. 23
Table 2-2: Configuration Example of the Network Interface Table ...................................................... 27
Table 2-3: New TLS Context ............................................................................................................. 29
Table 2-4: Configuration Example Media Realms in Media Realms Table .......................................... 36
Table 2-5: Configuration Example of SIP Signaling Interfaces ........................................................... 37
Table 2-6: Configuration Example Proxy Sets in Proxy Sets Table .................................................... 38
Table 2-7: Configuration Proxy Address for Teams Direct Routing..................................................... 39
Table 2-8: Configuration Proxy Address Towards Remote SiteA SBC ............................................... 39
Table 2-9: Configuration Example: Teams IP Profile.......................................................................... 40
Table 2-10: Configuration Example: SIP Trunk IP Profile (toward remote Site A SBC) ....................... 41
Table 2-11: Configuration Example: IP Group for Microsoft Teams Direct Routing ............................. 42
Table 2-12: Configuration Example: IP Group for Site A SBC ............................................................ 43
Table 2-13: Call Setup Rules Table ................................................................................................... 46
Table 2-14: IP-to-IP Call Routing Rules ............................................................................................. 49
Table 2-15: Firewall Table Rules ....................................................................................................... 50
Table 2-16: Configuration Example: Site SBC SIP Interfaces............................................................. 51
Table 2-17: Configuration Example: Site Proxy Sets.......................................................................... 52
Table 2-18: Configuration Proxy Address for SIP Trunk ..................................................................... 52
Table 2-19: Configuration Example: Proxy SBC Address ................................................................... 52
Table 2-20: Configuration Example: Teams IP Profile (through the Proxy SBC) ................................. 53
Table 2-21: Configuration Example: SIP Trunk IP Profile (toward SIP Provider/ Media Gateway) ....... 53
Table 2-22: Configuration Example: Site SBC IP Group towards SIP Trunk ....................................... 54
Table 2-23: Configuration Example: Site SBC IP Group towards Teams (through Proxy SBC) ........... 54
Table 2-24: Site IP-to-IP Call Routing Rule ........................................................................................ 55
Table 2-25: Update Configuration of the SIP Trunk IP Profile............................................................. 56
Table 2-26: Configuration Example: Site SIP Interface ...................................................................... 58
Table 2-27: Configuration Example: Site Proxy Set ........................................................................... 58
Table 2-28: Configuration Example: Site Proxy Address .................................................................... 59
Table 2-29: Configuration Example: Teams IP Profile (through the Proxy SBC) ................................. 59
Table 2-30: Configuration Example: Site IP Group............................................................................. 60
Table 2-31: SBC IP-to-IP Routing Rules ............................................................................................ 60
Table 2-32: Gateway Tel-to-IP Routing Rule ..................................................................................... 61
Table A-1: Syntax Requirements for an 'OPTIONS' Message ............................................................ 67
Table A-2: Teams Direct Routing Interface - Technical Characteristics .............................................. 68
Table C-1: SIP Interface Proxy SBC Configuration Summary ............................................................ 73
Table C-2: SIP Interface Remote SBC Configuration Summary ......................................................... 74
Table C-3: Proxy Set Proxy SBC Configuration Summary ................................................................. 74
Table C-4: Proxy SET Remote SBC Configuration Summary............................................................. 74
Table C-5: IP Profile Configuration Summary .................................................................................... 75
Table C-6: IP Group Proxy SBC toward Teams Configuration Summary............................................ 77
Table C-7: IP Group Proxy SBC toward Remote SBC’s Configuration Summary ............................... 78
Table C-8: IP Group Remote SBC toward Proxy SBC Configuration Summary .................................. 78
Table C-9: IP Group Remote SBC toward SIP Trunk (PSTN) Configuration Summary ....................... 78
Table C-10: IP-To-IP Routing in the Proxy SBC................................................................................. 79
Table C-11: IP-To-IP Routing in the Remote Site SBC ...................................................................... 79
Table C-12: Proxy SBC Message Manipulation Index 0 ..................................................................... 80
Table C-13: Proxy SBC Message Manipulation Index 1 ..................................................................... 80
Notice
Notice
Information contained in this document is believed to be accurate and reliable at the time of
printing. However, due to ongoing product improvements and revisions, AudioCodes cannot
guarantee accuracy of printed material after the Date Published nor can it accept responsibility
for errors or omissions. Updates to this document can be downloaded from
https://www.audiocodes.com/library/technical-documents.
This document is subject to change without notice.
Date Published: August-23-2021
WEEE EU Directive
Pursuant to the WEEE EU Directive, electronic and electrical waste must not be disposed of
with unsorted waste. Please contact your local recycling authority for disposal of this product.
Customer Support
Customer technical support and services are provided by AudioCodes or by an authorized
AudioCodes Service Partner. For more information on how to buy technical support for
AudioCodes products and for contact information, please visit our website at
https://www.audiocodes.com/services-support/maintenance-and-support.
Related Documentation
Document Name
LTRT
47B Description
All information related to Local Media Optimization was removed from document
‘Connecting AudioCodes' SBC to Microsoft Teams Direct Routing Enterprise Model’
33450
and included in this document. Added Appendix “AudioCodes ARM and SBCs with
Teams Direct Local Media Optimization”
33451 Update for Message Manipulation rule towards Microsoft Teams.
33452 Updated parameter name.
Update to SIP Trunk IP Profile and validated firmware version. Update to the Firewall
33453
Table Rules table with additional IP addresses for the new infrastructure DCs.
Added section for overcoming problem of not playing music on hold during
33454
conversational transfer.
Documentation Feedback
AudioCodes continually strives to produce high quality documentation. If you have any
comments (suggestions or errors) regarding this document, please fill out the Documentation
Feedback form on our website at https://online.audiocodes.com/documentation-feedback.
1 Introduction
This document describes how to connect AudioCodes' SBC to Teams Direct Routing with
Local Media Optimization and refers to the AudioCodes SBC configuration only. For
configuring the Office 365 side, please refer to https://docs.microsoft.com/en-
us/microsoftteams/direct-routing-configure.
This document is intended for IT or telephony professionals.
Notes:
• The implementation of this feature is only relevant for customers with site topology
requiring Local Media Optimization solution
• SIP Signaling is always routed via the Microsoft Phone System Cloud PBX
• For Quick guidelines, see Appendix C “Configuration Quick Guidelines”.
2.1 Introduction
The SBC supports the capability to optimize media flow between the Microsoft Phone System
(Cloud PBX) and Direct Route SBC devices. It implements network policies for media traffic
control flows paths between the Teams clients and the SBC devices for PSTN termination.
Enterprises consider PSTN voice as a business-critical application with high emphasis on
voice quality. Media Path Optimization in Media Bypass mode for Direct Routing helps to
better manage voice quality by enabling enterprises to do the following:
◼ Control how the media traffic flows between the Teams clients and customer SBCs;
◼ Allowing media streams between the Teams clients and SBCs even if SBCs are
behind the corporate firewalls with private IPs and not directly visible to Microsoft.
By default, media bypass (referred to as Direct Media by the AudioCodes SBC application)
is configured per SIP interface or per SBC device by the parameter Microsoft Teams
PowerShell configured parameter MediaBypass (True or False). When enabled, media is
routed directly between the Teams user and the SBC, bypassing the Microsoft Phone System
Cloud PBX Media Relay or Media Proxy, on the condition that the client and the SBC media
interface can establish a routed connection (verified during ICE negotiation).
Affectively this means that traffic does not need to route through an unnecessary loop. For
example, the Teams user is in the same building and/or network as the SBC (the Teams
client is inside the corporate network and has access to the Internal IP address of the SBC).
Alternatively, if the Teams user is outside the corporate network and cannot reach the internal
IP address of the SBC, then RTP media needs to pass via the Microsoft Phone System Cloud
PBX.
The new functionality of Local Media Optimization uses an additional capability for the
location of the Teams user device (for the inbound or the outgoing call). In other words, the
SBC offers the correct interface for the media based on the user device location.
The handling is based on supplementary SIP headers supplied by Microsoft Teams HUB:
◼ X-MS-UserLocation: Indicates whether the Teams user is inside or outside the
corporate network.
◼ X-MS-MediaPath: Indicates the FQDN of the SBC devices in the network that the call
must traverse.
◼ X-MS-UserSite: Indicates the name of the network site
192.168.6.0/24
192.168.5.5 52.114.76.71
sbc4.contoso.com
192.168.7.0/24 PSTN
192.168.6.0/24
192.168.5.5 52.114.76.71
sbc4.contoso.com
192.168.7.0/24 PSTN
192.168.3.5 96.66..240.133
192.168.1.5
Session Border Controller + DR
PSTN Phone System
(Cloud PBX)
sbc2.contoso.com Proxy SBC
sbc1.contoso.com
192.168.2.5
sbc3.contoso.com
When a user is outside of the office (on a public internet or in a different office) the
media flows from the user to the public IP of the Proxy SBC, which proxies it to the
downstream SBC(s).
192.168.1.0/24
sbc1.contoso.com
sbc3.contoso.com
Note: Enabling Location-based routing policies is not Mandatory for LMO, instead only
the assigning of the SBC devices to the sites is required, as shown in the above
PowerShell command sets. If you would like to enable Location-based routing, refer to
the configuration reference:
https://docs.microsoft.com/en-us/microsoftteams/location-based-routing-enable
Based on the information above the Direct Routing will include three proprietary SIP Headers
to SIP Invites and Re-invites.
◼ PSTN Gateways
◼ PSTN Usage records for use within Voice Routes and Voice Routing Policies
◼ Voice Routes
◼ Voice Routing Policies
Note: This Chapter is optional, UMP offer simple and easy to use WEB portal user
interface that Alleviates need for PowerShell expertise (Chapter 4.3.1)
Site HQ
Site A 192.168.9.0/24
192.168.10.0/24
sbc5.contoso.com
Site HQ
Site A 192.168.5.0/24
192.168.6.0/24
192.168.5.5 52.114.76.71
sbc4.contoso.com
192.168.7.0/24 PSTN
2.4.3 Always Bypass with Teams User and SBC in Different Sites
This topology reflects when the Teams user is in a different location to the branch SBC;
however located inside the corporate network and BypassMode is configured to
alwaysbypass:
◼ The Teams user device is inside the corporate network “Internal” and is in a different
location to the branch SBC and places an Outbound call – BypassMode is set to
alwaysbypass.
◼ TheTeams user device is inside the corporate network “Internal” and is in a different
location to the branch SBC, receiving an Inbound call – BypassMode is set to
alwaysbypass.
Figure 2-8: Always Bypass with Teams User and SBC in Different Sites
Site HQ
Site A 192.168.9.0/24
192.168.10.0/24
sbc5.contoso.com
192.168.11.0/24
Site HQ
Site A
192.168.3.5 96.66..240.133
192.168.1.5
Session Border Controller + DR
PSTN Phone System
(Cloud PBX)
sbc2.contoso.com Proxy SBC
sbc1.contoso.com
192.168.2.5
sbc3.contoso.com
Figure 2-10: Only for Local Users with External Teams User
Site HQ
Site A 192.168.3.0/24
192.168.1.0/24
sbc1.contoso.com
sbc3.contoso.com
2.4.6 Only for Local Users with Internal Teams User in Different Sites
This topology reflects when the Teams User is in a different location to the branch SBC;
however located inside the corporate network and BypassMode is configured to
OnlyForLocalUsers:
◼ The Teams user is inside the corporate network “Internal” and is in a different location
to the branch SBC and places an Outbound call – BypassMode is set to
OnlyForLocalUsers.
◼ TheTeams user is inside the corporate network “Internal” and is in a different location
to the branch SBC, receiving an Inbound call – BypassMode is set to
OnlyForLocalUsers.
Figure 2-11: Only for Local Users with Internal Teams User in Different Sites
Site HQ
Site A 192.168.3.0/24
192.168.1.0/24
sbc1.contoso.com
sbc3.contoso.com
Note: This document shows how to configure the connection between AudioCodes'
SBC and the Teams Direct Routing with a generic SIP Trunk. For detailed
configuration of other entities in the deployment such as the SIP Trunk Provider and
the local IP-PBX, refer to AudioCodes' SIP Trunk Configuration Notes (in the
interoperability suite of documents).
2.5.1 Prerequisites
Before you begin the configuration, make sure you have the following for every SBC you want
to pair:
◼ Public IP address
◼ FQDN name matching SIP addresses of the Office 365 tenants
◼ Public certificate, issued by one of the supported CAs
Valid names:
▪ sbc.ACeducation.info
▪ ussbcs15.ACeducation.info
▪ europe.ACeducation.info
ACeducation.info Yes
Invalid name:
sbc1.europe.ACeducation.info (requires
registering domain name europe.atatum.biz
in 'Domains' first)
Using *.onmicrosoft.com domains is not
adatumbiz.onmicrosoft.com No
supported for SBC names
Valid names:
▪ sbc1.hybridvoice.org
hybridvoice.org Yes ▪ ussbcs15.hybridvoice.org
▪ europe.hybridvoice.org
Invalid name:
sbc1.europe.hybridvoice.org (requires
registering domain name
europe.hybridvoice.org in 'Domains' first
Users can be from any SIP domain registered for the tenant. For example, you can provide
users [email protected] with the SBC FQDN sbc1.hybridvoice.org so long as both
names are registered for this tenant.
Figure 2-12: Example of Registered DNS Names
The following IP address and FQDN are used as examples in this guide:
195.189.192.157 sbc.ACeducation.info
Remote Site
Session Border Controller
Note: Based on your hardware configuration, you might have more than two ports.
Media +
Control (as this
interface According to
195.189.192.157 195.189.192.129
points to the IPv4 your Internet
1 WAN_IF (DMZ IP address 25 (router's IP vlan 2
internet, Manual provider's
of SBC) address)
enabling instructions
OAMP is not
recommended)
3. Click Apply.
All other parameters can be left unchanged with their default values.
Note: The table above exemplifies configuration focusing on interconnecting SIP and
media. You might want to configure additional parameters according to your
company's policies. For example, you might want to configure Online Certificate Status
Protocol (OCSP) to check if SBC certificates presented in the online server are still
valid or revoked. For more information on the SBC's configuration, see the User's
Manual, available for download from https://www.audiocodes.com/library/technical-
documents.
3. Click Apply; you should see the new TLS Context and option to manage the certificates
at the bottom of 'TLS Context' table.
Figure 2-20: Configured TLS Context for Direct Routing and Interface to
Manage the Certificates
➢ To generate a Certificate Signing Request (CSR) and obtain the certificate from a
supported Certification Authority:
1. Open the TLS Contexts page (Setup menu > IP Network tab > Security folder > TLS
Contexts).
2. In the TLS Contexts page, select the Teams TLS Context index row, and then click the
Change Certificate link located below the table; the Context Certificates page appears.
3. Under the Certificate Signing Request group, do the following:
a. In the 'Common Name [CN]' field, enter the SBC FQDN name (based on example
above, ACeducation.info).
b. In the '1st Subject Alternative Name [SAN]' field, change the type to ‘DNS’, and
then enter the SBC FQDN name (based on the example above,
ACeducation.info).
Note: The domain portion of the Common Name [CN] and 1st Subject Alternative
Name [SAN] must match the SIP suffix configured for Office 365 users.
c. Change the 'Private Key Size' based on the requirements of your Certification
Authority. Many CAs do not support private key of size 1024. In this case, you
must change the key size to 2048.
d. To change the key size on TLS Context, go to: Generate New Private Key and
Self-Signed Certificate, change the 'Private Key Size' to 2048 and then click
Generate Private-Key. To use 1024 as a Private Key Size value, you can click
Generate Private-Key without changing the default key size value.
e. Enter the rest of the request fields according to your security provider's
instructions.
f. Click the Create CSR button; a textual certificate signing request is displayed in
the area below the button:
4. Copy the CSR from the line "----BEGIN CERTIFICATE" to "END CERTIFICATE
REQUEST----" to a text file (such as Notepad), and then save it to a folder on your
computer with the file name, for example certreq.txt.
5. Send certreq.txt file to the Certified Authority Administrator for signing.
2.5.5.4 Deploy the SBC and Root / Intermediate Certificates on the SBC
After obtaining the SBC signed and Trusted Root/Intermediate Certificate from the CA, install
the following:
◼ SBC certificate
◼ Root / Intermediate certificates
2. Validate that the certificate was uploaded correctly: A message indicating that the
certificate was uploaded successfully is displayed in blue on the lower part of the page:
Figure 2-23: Message Indicating Successful Upload of the Certificate
3. In the SBC's Web interface, return to the TLS Contexts page, select the required TLS
Context index row, and then click the Certificate Information link, located at the bottom
of the TLS. Then validate the Key size, certificate status and Subject Name:
The DNS name of the Teams Direct Routing interface is sip.pstnhub.microsoft.com. In this
interface, a certificate is presented which is signed by Baltimore Cyber Baltimore CyberTrust
Root with Serial Number: 02 00 00 b9 and SHA fingerprint: d4:de:20:d0:5e:66:fc:
53:fe:1a:50:88:2c:78:db:28:52:ca:e4:74.
To trust this certificate, your SBC must have the certificate in Trusted Certificates storage.
Download the certificate from https://www.digicert.com/kb/digicert-root-
certificates.htm and follow the steps above to import the certificate to the Trusted Root
storage.
Note: Before importing the Baltimore root certificate into AudioCodes' SBC, make sure
it's in .PEM or .PFX format. If it isn't, you need to convert it to .PEM or .PFX format,
otherwise the 'Failed to load new certificate' error message is displayed. To convert to
PEM format, use Windows local store on any Windows OS and then export it as 'Base-
64 encoded X.509 (.CER) certificate'.
Note: The Direct Routing interface can only use TLS for a SIP port. It does not support
using TCP due to security reasons. The SIP port might be any port of your choice.
When pairing the SBC with Office 365, the chosen port is specified in the pairing
command.
5061 Disable
SitesSIPInterface (according (leave 500 (leave
0 LAN_IF SBC 0 0 MRLan -
(arbitrary name) to site default default value)
requirement) value)
0
(Phone
System 5061 (as 0
Teams (arbitrary does not configured (Recommended
1 WAN_IF SBC 0 Enable MRWan Teams
name) use UDP in the Office to prevent DoS
or TCP 365) attacks)
for SIP
signaling)
Note: For implementing an MTLS connection with the Microsoft Teams network,
configure ‘TLS Mutual Authentication’ to “Enable” for the Teams SIP Interface.
Proxy
Proxy Proxy
SBC IPv4 SIP TLS Context Load
Index Name Keep- Hot
Interface Name Balancing
Alive Swap
Method
Teams
Using Random
1 (arbitrary Teams Teams Enable
Options Weights
name)
Using
2 SiteA SitesSIPInterface Default - -
Options
0 sip.pstnhub.microsoft.com:5061 TLS 1 1
1 sip2.pstnhub.microsoft.com:5061 TLS 2 1
2 sip3.pstnhub.microsoft.com:5061 TLS 3 1
4. Click Apply and then save your settings to flash memory.
0 192.168.1.5:5061 TLS
4. Click Apply and then save your settings to flash memory.
3. Click Apply, and then confirm the configuration change in the prompt that pops up.
Parameter Value
General
Name Teams (arbitrary descriptive name)
Media Security
SBC Media Security Mode Secured
Parameter Value
Parameter Value
General
Name SiteA (arbitrary name)
SBC Forward and Transfer
Remote REFER Mode Regular
Remote Replaces Mode Standard
Remote 3xx Mode Transparent
All other parameters can be left unchanged with their default values.
5. Click Apply, and then save your settings to flash memory.
➢ To configure IP Group for Microsoft Teams Direct Routing for Media optimization:
1. Open the IP Groups table (Setup menu > Signaling & Media tab > Core Entities folder
> IP Groups).
2. Click Edit to re-configure the IP Group for the Microsoft Teams Direct Routing paired
SBC (Proxy SBC):
Table 2-11: Configuration Example: IP Group for Microsoft Teams Direct Routing
Parameter Value
Parameter Value
3. Click +New to add the IP Group for the SBC located at Site A and connected to the SIP
Trunk. Configure the parameters using the table below as reference:
Table 2-12: Configuration Example: IP Group for Site A SBC
Parameter Value
3. Click Apply.
Parameter Value
Index 0
Name Teams-Contact (arbitrary descriptive name)
Condition header.contact.url.host contains 'pstnhub.microsoft.com'
3. Click Apply.
Parameter Value
Index 0
Name Teams
Source SIP Interface Teams
Source IP Address 52.114.*.*
Destination Host sbc.ACeducation.info (example)
Message Condition Teams-Contact
Action Type Allow
Source IP Group Teams
3. Click Apply.
Rules Action
Index Condition Action Subject Action Value
Set ID Type
Parameter Value
Index 0
Name Privacy Header
Manipulation Set ID 0
Condition Header.Privacy contains 'id'
Action Subject Header.Privacy
Action Type Remove
3. Configure another manipulation rule (Manipulation Set 1) for Teams IP Group. This rule
applies to messages sent to the Teams IP Group. This replace the host part of the
Contact Header with the value from the To Header.
Parameter Value
Index 1
Name Replace Host in Contact
Manipulation Set ID 1
Message Type Invite.Request
Action Subject Header.Contact.URL.Host
Action Type Modify
Action Value Header.To.URL.Host
4. Configure a new manipulation rule (Manipulation Set 2) for Teams IP Group. This rule
applies to messages sent towards the Teams IP Group. This rule adds a routing policy
rule towards Microsoft for handling different call forwarding scenarios (according to the
action values shown below).
Parameter Value
Index 2
Name Teams Routing Policy (arbitrary name)
Manipulation Set ID 1
Condition
Action Subject Header.X-MS-RoutingPolicies
Action Type Add
One of the following values:
’none’,
Action Value ’no_missed_call’,
’disable_forwarding’,
’disable_forwarding_except_phone’
Source Routing
Request Dest Internal
Index Name IP Dest Type Tag
Type IP Group Action
Group Name
Reply
Terminate
0 Any OPTIONS Internal (Response
OPTIONS
='200')
Teams to
SIP Trunk Destination
1 Teams Site
(arbitrary Tag
name)
SIP Trunk
to Teams
2 Any IP Group Teams
(arbitrary
name)
Note: The routing configuration may change according to your specific deployment
topology.
Use
Subnet Start End Interface Allow
Index Source IP Protocol Specific
Prefix Port Port ID Type
Interface
5060
Disable 0
SIPTrunk (according
(leave (Recommended
0 (arbitrary WAN_IF SBC to Service 0 0 MRWan -
default to prevent DoS
name) Provider
value) attacks)
requirement)
ProxySBC
500 (leave
1 (arbitrary LAN_IF SBC 0 0 5061 Enable MRLan -
default value)
name)
SIPTrunk
1 SIPTrunk Default Using Options
(arbitrary name)
ProxySBC
2 ProxySBC Default Using Options
(arbitrary name)
All other SIP configuration can be left unchanged with their default values.
Parameter Value
General
Name ProxySBC (arbitrary name)
Media Security
SBC Media Security Mode Secured
SBC Media
Extension Coders Group AudioCodersGroups_1
ICE Mode Lite
SBC Signaling
Remote Update Support Not Supported
Remote re-INVITE Support Supported Only With SDP
Remote Delayed Offer Support Not Supported
Remote Representation Mode Replace Contact
SBC Forward and Transfer
Remote REFER Mode Handle Locally
Remote Replaces Mode Handle Locally
Remote 3xx Mode Handle Locally
SBC Hold
Remote Hold Format Inactive
All other parameters can be left unchanged at their default values.
3. Click Apply.
4. Click +New to add the IP Profile for the SIP Trunk. Configure the parameters using the
table below as reference.
Table 2-21: Configuration Example: SIP Trunk IP Profile (toward SIP Provider/ Media Gateway)
Parameter Value
General
Name SIPTrunk (arbitrary name)
SBC Signaling
P-Asserted-Identity Header Mode Add (required for anonymous calls)
➢ To configure an IP Groups:
1. Open the IP Groups table (Setup menu > Signaling & Media tab > Core Entities folder
> IP Groups).
2. Click +New to add the IP Group for the SIP Trunk:
Table 2-22: Configuration Example: Site SBC IP Group towards SIP Trunk
Parameter Value
Name SIPTrunk
Type Server
Proxy Set SIPTrunk
IP Profile SIPTrunk
Media Realm MRLan or MRWan (according to your network environment)
SIP Group Name (according to ITSP requirement)
All other parameters can be left unchanged with their default values.
3. Click Apply.
4. Click +New to add the IP Group towards Teams (through Proxy SBC) in the remote site
SBC:
Table 2-23: Configuration Example: Site SBC IP Group towards Teams (through Proxy SBC)
Parameter Value
Parameter Value
Terminate Reply
0 Any OPTIONS Internal
OPTIONS (Response='200')
Terminate
Refer
1 Any Any REFER ProxySBC IP Group ProxySBC
(arbitrary
name)
Teams to
SIP Trunk
2 ProxySBC IP Group SIPTrunk
(arbitrary
name)
SIP Trunk
to Teams
3 SIPTrunk IP Group ProxySBC
(arbitrary
name)
Parameter Value
SBC Hold
Remote Hold Format Send Only
Reliable Held Tone Source No
Play Held Tone Internal
3. Click Apply, and then save your settings to flash memory.
2. Click the Browse button corresponding to the Prerecorded Tones file type that you
want to load, navigate to the folder in which the file is located, and then click Open; the
name and path of the file appear in the field next to the Browse button.
3. Click the Load File button corresponding to the file you want to load.
4. Save the loaded auxiliary files to flash memory.
Note: If in your configuration connectivity to SIP Trunks provided from the Proxy SBC,
these changes are required on Proxy SBC.
Notes:
• This section is only relevant for implementation, where the remote site is
populated with PSTN connectivity (through Gateway Application).
• The Gateway configuration can vary from customer to customer, therefore in
this document, we only provide the configuration changes that are necessary
to adopt the Gateway to work with Local Media Optimization.
• Device should be populated with the appropriate (SBC session and IP
security) licenses.
Parameter Value
General
Name ProxySBC (arbitrary name)
Media Security
SBC Media Security Mode Secured
SBC Media
Extension Coders Group AudioCodersGroups_1
ICE Mode Lite
SBC Signaling
Remote Update Support Not Supported
Remote re-INVITE Support Supported Only With SDP
Remote Delayed Offer Support Not Supported
Remote Representation Mode Add Routing Headers
SBC Forward and Transfer
Remote REFER Mode Handle Locally
Remote Replaces Mode Handle Locally
Remote 3xx Mode Handle Locally
SBC Hold
Remote Hold Format Inactive
All other parameters can be left unchanged at their default values.
➢ To configure an IP Group:
1. Open the IP Groups table (Setup menu > Signaling & Media tab > Core Entities folder
> IP Groups).
2. Click +New to add the IP Group towards Proxy SBC:
Table 2-30: Configuration Example: Site IP Group
Parameter Value
Source IP Request Call ReRoute Dest Dest Dest SIP Dest Dest
Index Name
Group Type Triger IP Group Type IP Group Interface Address Port
Terminate Dest
0 Any OPTIONS internal
OPTIONS Address
Refer from
Teams Request
1 Any REFER ProxySBC ProxySBC
(arbitrary URI
name)
Source IP Request Call ReRoute Dest Dest Dest SIP Dest Dest
Index Name
Group Type Triger IP Group Type IP Group Interface Address Port
GW to Teams
Teams ProxySBC
(arbitrary name)
All other parameters can be left unchanged with their default values.
A.1 Terminology
Strictly required. The deployment does not function correctly without the correct
Must
configuration of these parameters.
◼ Contact header
• MUST: When placing calls to the Direct Routing interface, the 'CONTACT' header
must have the SBC FQDN in the URI hostname
• Syntax: Contact: <phone number>@<FQDN of the SBC>:<SBC Port>;<transport
type>
• If the parameter is not configured correctly, calls are rejected with a '403 Forbidden'
message.
◼ Contact header
• MUST: When sending OPTIONS to the Direct Routing interface, the 'CONTACT'
header must have the SBC FQDN in the URI hostname
• Syntax: Contact: <phone number>@<FQDN of the SBC>:<SBC Port>;<transport
type>
• If the parameter is not configured correctly, the calls are rejected with a '403
Forbidden' message
The table below shows where in the Web interface the parameters are configured and where in this
document you can find the configuration instructions.
Table A-1: Syntax Requirements for an 'OPTIONS' Message
Remote Site B
Classification
Enable TLS
Network Application UDP TCP Failure Media
Index Name TLS Port TCP Context
Interface Type Port Port Response Realm
Keepalive Name
Type
5061
SiteSIPInt (accordi Disable
erface ng to (leave 500 (leave
0 LAN_IF SBC 0 0 MRLan -
(arbitrary site default default value)
name) requirem value)
ent)
5061 (as
0
Teams configur
(Recommend
1 (arbitrary WAN_IF SBC 0 0 ed in the Enable MRWan Teams
ed to prevent
name) Office
DoS attacks)
365)
5060
Disable 0
SIPTrunk (according
(leave (Recommended
0 (arbitrary WAN_IF SBC to Service 0 0 MRWan -
default to prevent DoS
name) Provider
value) attacks)
requirement)
ProxySBC
500 (leave
1 (arbitrary LAN_IF SBC 0 0 5061 Enable MRLan -
default value)
name)
Proxy
TLS Proxy Proxy
SBC IPv4 SIP Load Transport Proxy
Index Name Context Keep- Hot Proxy Address
Interface Balancing Type Priority
Name Alive Swap
Method
sip.pstnhub.micros
oft.com:5061
Teams TLS 1
Using Random sip2.pstnhub.micr
1 (arbitrary Teams Teams Enable TLS 2
Options Weights osoft.com:5061
name) TLS 3
sip3.pstnhub.micr
osoft.com:5061
SiteA 192.168.1.5:5061
SiteSIPInterface Using
2 (arbitrary Default - - (IP address of the TLS
(arbitrary name) Options
name) SiteA SBC)
SiteB 192.168.2.5:5061
SiteSIPInterface Using
3 (arbitrary Default - - (IP address of the TLS
(arbitrary name) Options
name) SiteB SBC)
Proxy
SBC IPv4 TLS Proxy Proxy
Load Transport
Index Name SIP Context Keep- Hot Proxy Address Proxy Priority
Balancing Type
Interface Name Alive Swap
Method
SIPTrunk
Using
1 (arbitrary SIPTrunk Default - - SIPTrunk.com:5060 UDP -
Options
name)
ProxySBC
Using
2 (arbitrary ProxySBC Default - - {ProxySBC IP}:5061 TLS -
Options
name)
C.4 IP Profile
Table C-5: IP Profile Configuration Summary
General
SIPTrunk (toward
SiteA (toward site
Name SIP Provider/ ProxySBC Teams
A Remote SBC)
MGW appl)
Not Secured
SBC Media Secured Secured
(should be
Security (according to (according to Secured
synchronized with
Mode customer needs) customer needs)
SIP provider)
By Media
(required, as
Remote Teams Direct
Early Media Routing does not
By Signaling By Signaling By Signaling
RTP send RTP
(Default) (Default) (Default)
Detection immediately to
Mode remote side when it
sends a SIP 18x
response)
SBC Media
Extension
AudioCodersGro AudioCodersGro AudioCodersGro AudioCodersGro
Coders
ups_1 ups_1 ups_1 ups_1
Group
Generate Always
(required, as some
ITSPs do not send
RTCP Transparent Transparent Transparent
RTCP packets
Mode (Default) (Default) (Default)
during Hold, but
Microsoft expects
them)
ICE Mode Disable (Default) Lite Disable (Default) Lite
SBC Signaling
P-Asserted-
Identity Add (required for
As Is (Default) As Is (Default) As Is (Default)
Header anonymous calls)
Mode
SIP
Supported Supported
UPDATE Not Supported Not Supported
(Default) (Default)
Support
Remote re-
Supported Supported Only Supported Supported Only
INVITE
(Default) With SDP (Default) With SDP
Support
Remote
Delayed Supported Supported
Not Supported Not Supported
Offer (Default) (Default)
Support
Remote According to According to
Add Routing
Representa Operation Mode Replace Contact Operation Mode
Headers
tion Mode (Default) (Default)
Remote
REFER Handle Locally Handle Locally Regular (Default) Regular (Default)
Mode
Remote
Replaces Handle Locally Handle Locally Standard (Default) Standard (Default)
Mode
Play RBT
To Yes No (Default) No (Default) No (Default)
Transferee
Remote Transparent Transparent
Handle Locally Handle Locally
3xx Mode (Default) (Default)
SBC Hold
C.5 IP Group
Table C-6: IP Group Proxy SBC toward Teams Configuration Summary
Parameter Value
Name Teams
Type Server
Proxy Set Teams
IP Profile Teams
Media Realm MRWan
MRLan
This parameter is relevant when the 'Teams Local Media Optimization
Handling' parameter (see below) is configured to any value other than
“None” and the X-MS-UserLocation header in the incoming SIP message is
Internal Media Realm set to ‘Internal’. In this case, the Internal Media Realm determines the UDP
port range and maximum sessions for Media traffic on this IP interface.
Table C-7: IP Group Proxy SBC toward Remote SBC’s Configuration Summary
Parameter Value
Name SiteA/SiteB
Type Server
Proxy Set SiteA/SiteB
IP Profile SiteA/SiteB
Media Realm MRLan
Site={RemotePSTNGateWayFQDN}
Tags The Site Tag should be defined as the remote site SBC’s FQDN and
should be discoverable by DNS from the Proxy SBC.
All other parameters can be left unchanged with their default values.
Table C-8: IP Group Remote SBC toward Proxy SBC Configuration Summary
Parameter Value
Table C-9: IP Group Remote SBC toward SIP Trunk (PSTN) Configuration Summary
Parameter Value
Routing
Source IP Request Dest IP
Index Name Dest Type Tag Internal Action
Group Type Group
Name
Terminate
0 Any OPTIONS Internal Reply (Response='200')
OPTIONS
Teams to
SIP Trunk
1 Teams Destination Tag Site
(arbitrary
name)
SIP Trunk
to Teams
2 Any IP Group Teams
(arbitrary
name)
Terminate Reply
0 Any OPTIONS Internal
OPTIONS (Response='200')
Terminate
Refer IP
1 Any Any REFER ProxySBC ProxySBC
(arbitrary Group
name)
Teams to
SIP Trunk IP
2 ProxySBC SIPTrunk
(arbitrary Group
name)
SIP Trunk
to Teams IP
3 SIPTrunk ProxySBC
(arbitrary Group
name)
Parameter Value
Index 0
Name Privacy Header
Manipulation Set ID 0
Condition Header.Privacy contains 'id'
Action Subject Header.Privacy
Action Type Remove
Parameter Value
Index 1
Name Replace Host in Contact
Manipulation Set ID 1
Message Type Invite.Request
Action Subject Header.Contact.URL.Host
Action Type Modify
Action Value Header.To.URL.Host
Notes:
• Validate that your AudioCodes' Mediant SBCs are loaded with the correct
firmware version (7.20A.258.354 or later).
• The following sections assumes that an SBC configuration is deployed in
production working with Local Media Optimization and you wish to add support
for working with ARM.
Note: If the SBC is already provisioned to work with Local Media Optimization, and the
solution is being extended to work with ARM, set the 'Used by Routing Server' parameter
to ‘Used’ for all SRDs.
6. Configure the Media Realms as described in Section 2.5.8 and set the 'Used by Routing
Server' parameter to ‘Used’ for both Media Realms.
Note: If the SBC is already provisioned to work with Local Media Optimization and the
solution is being extended to work with ARM, set the 'Used by Routing Server' parameter
to ‘Used’ for both Media Realms.
7. Configure SIP Interfaces as described in Section 2.5.9 and set the 'Used by Routing Server'
parameter to ‘Used’ for both interfaces.
Note: If SBC is already provisioned to work with Local Media Optimization, and the
solution is being extended to work with ARM, set the 'Used by Routing Server' parameter
to ‘Used’ for both interfaces.
Note: If SBC is already provisioned to work with Local Media Optimization, and the
solution is being extended to work with ARM, delete all Proxy Sets towards sites.
10. Add an IP Profiles for Teams as described in Section 2.5.12 according to Table 2-9.
11. Add an IP Group toward Teams as described in Section 2.5.13 according to Table 2-11
and set the 'Used by Routing Server' parameter to ‘Used’.
Note: If SBC is already provisioned to work with Local Media Optimization, and the
solution is being extended to work with ARM, set the 'Used by Routing Server' parameter
to ‘Used’ and delete all IP Groups towards sites.
Note: If the SBC is already provisioned to work with Local Media Optimization, and the
solution is now being extended to work with ARM, set the 'Used by Routing Server'
parameter to ‘Used’ for all SRDs.
3. Configure the Media Realms as described in Section 2.6.2 and set the 'Used by Routing
Server' parameter to ‘Used’ for both Media Realms.
Note: If the SBC is already provisioned to work with Local Media Optimization, and the
solution is now being extended to work with ARM, set the 'Used by Routing Server'
parameter to ‘Used’ for both Media Realms.
4. Configure SIP Interfaces as described in Section 2.6.3 and set 'Used by Routing Server'
parameter to ‘Used’ for both interfaces.
Note: If the SBC is already provisioned to work with Local Media Optimization, and the
solution is now being extended to work with ARM, set the 'Used by Routing Server'
parameter to ‘Used’ for both interfaces.
Note: If SBC is already provisioned to work with Local Media Optimization, and now
solution is extended with ARM, you have to delete Proxy Set towards Proxy SBC.
6. Add an IP Profiles for SIP Trunk as described in Section 2.6.5 according to Table 2-21.
7. Add an IP Group toward SIP Trunk as described in Section 2.6.6 according to Table 2-22
and set the 'Used by Routing Server' parameter to ‘Used’.
Note: If the SBC is already provisioned to work with Local Media Optimization, and the
solution is being extended to work with ARM, set the 'Used by Routing Server' parameter
to ‘Used’ and delete IP Group towards Proxy SBC.
3. Unlock the Peer Connections. Wait for Sync. Nodes will be enabled.
Figure D-4: Enable Nodes
➢ To define connection between the remote SBC and the proxy SBC:
1. Drag a Connection from the Remote_SBC to the Proxy_sbc.
2. Select the protocol type, Routing Interface, Name, Ip Profile, Media Realm for both Nodes.
3. Configure Sip Group Name for the Remote Node.
Figure D-5: Add Connection
.
6. Edit the SIPTrunk Voip-Peer and select SIP_TRUNK.
Figure D-8: SIPTrunk VoIP-Peer
AudioCodes Inc.
200 Cottontail Lane
Suite A101E
Somerset NJ 08873
Tel: +1-732-469-0880
Fax: +1-732-469-2298
©2021 AudioCodes Ltd. All rights reserved. AudioCodes, AC, HD VoIP, HD VoIP Sounds Better, IPmedia, Mediant,
MediaPack, What’s Inside Matters, OSN, SmartTAP, User Management Pack, VMAS, VoIPerfect, VoIPerfectHD, Your
Gateway To VoIP, 3GX, VocaNom, AudioCodes One Voice, AudioCodes Meeting Insights, AudioCodes Room Experience
and CloudBond are trademarks or registered trademarks of AudioCodes Limited. All other products or trademarks are
property of their respective owners. Product specifications are subject to change without notice.
Document #: LTRT-33454