Connecting Audiocodes SBC To Microsoft Teams Direct Routing Hosting Model Configuration Note
Connecting Audiocodes SBC To Microsoft Teams Direct Routing Hosting Model Configuration Note
Configuration Note
AudioCodes Mediant™ Family of Media Gateways & Session Border Controllers
Hosting Model
Contents SBC for Teams DR Hosting
Table of Contents
Notice ................................................................................................................................ iv
WEEE EU Directive ......................................................................................................................... iv
Customer Support ......................................................................................................................... iv
Stay in the Loop with AudioCodes ................................................................................................. iv
Abbreviations and Terminology ..................................................................................................... iv
Related Documentation ................................................................................................................. iv
Document Revision Record ............................................................................................................. v
Documentation Feedback .............................................................................................................. vi
1 Introduction .................................................................................................................1
1.1 About Teams Direct Routing ................................................................................................. 1
1.2 About AudioCodes SBC Product Series ................................................................................. 1
1.3 Validated AudioCodes SBC Version ...................................................................................... 2
1.4 Infrastructure Prerequisites.................................................................................................. 2
2 Configuring AudioCodes' SBC ........................................................................................3
2.1 Prerequisites ......................................................................................................................... 5
2.1.1 About the SBC Domain Name in Hosting Model ................................................................. 5
2.1.1.1 SBC Domain Name in a Carrier Office 365 Tenant .............................................. 5
2.1.1.2 SBC Domain Name in a Customer Office 365 Tenant .......................................... 7
2.2 Validating AudioCodes SBC License ...................................................................................... 8
2.3 SBC Configuration Concept ................................................................................................... 8
2.4 Configuring LAN and WAN IP Interfaces ............................................................................... 9
2.4.1 Validating Configuration of Physical Ports and Ethernet Groups ....................................... 10
2.4.2 Configure LAN and WAN VLANs........................................................................................ 11
2.4.3 Configure Network Interfaces .......................................................................................... 12
2.5 Configuring TLS Context for Teams ..................................................................................... 13
2.5.1 Configuring the NTP Server Address ................................................................................. 14
2.5.2 Creating a TLS Context for Teams Direct Routing .............................................................. 15
2.5.3 Generating a CSR and Obtaining the Certificate from a Supported CA .............................. 16
2.5.4 Deploying the SBC and Root / Intermediate Certificates on the SBC ................................. 18
2.6 Method of Generating and Installing the Wildcard Certificate ........................................... 20
2.7 Deploying Trusted Root Certificate for MTLS connection ................................................... 20
2.8 Configuring Media Realms .................................................................................................. 21
2.9 Configuring SIP Signaling Interfaces ................................................................................... 22
2.10 Configuring Proxy Sets and Proxy Address ......................................................................... 23
2.10.1 Configuring Proxy Sets...................................................................................................... 23
2.10.2 Configuring a Proxy Address ............................................................................................. 24
2.11 Configuring the Dial Plan Table (Customer DID Only) ......................................................... 26
2.12 Configuring Call Setup Rules ............................................................................................... 27
- ii -
Contents SBC for Teams DR Hosting
- iii -
Notices SBC for Teams DR Hosting
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: June-12-2023
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
Mediant 500 Gateway & E-SBC User's Manual
Mediant 500L Gateway & E-SBC User's Manual
Mediant 800 Gateway & E-SBC User's Manual
Mediant 1000B Gateway & E-SBC User's Manual
Mediant 2600 E-SBC User's Manual
Mediant 4000 SBC User's Manual
Mediant 9000 SBC User's Manual
Mediant Software SBC User's Manual
Gateway and SBC CLI Reference Guide
- iv -
Notices SBC for Teams DR Hosting
Document Name
SIP Message Manipulation Reference Guide
AudioCodes User Management Pack 365 SP Edition Installation and Administration Guide
-v-
Notices SBC for Teams DR Hosting
LTRT Description
Added a configuration example for SIP Trunk. Configuration is simplified by moving to one IP
13209 Group for Teams and changing Call Setup Rules. Added NTP Server configuration. Updated
certified firmware version and links to Microsoft documents.
Modified sections: Deploy Baltimore Trusted Root Certificate (added note for Baltimore
13210 Trusted Root Certificate and MTLS implementation); Configure SIP Signaling Interfaces;
Configure Call Setup Rules ; Configure Message Manipulation Rules; Configure IP Groups;
13211 Note removed regarding external firewall.
13212 License update (typo)
Update to topology figures and correction for parameter “Remote Update Support” to “SIP
13213
UPDATE Support”.
Update to the “Related Documentation” table to include the Mediant 1000B Gateway & E-SBC
13214
product.
Update in configuration concept. Modified sections: SBC Configuration Concept; Configure
Proxy Sets and Proxy Address; Configure IP Groups; Configure IP-to-IP Call Routing Rules.
13215
Section “Tenant Provisioning Script” replaced with “UMP Configuration”. An Additional 2 IP
addresses were added to firewall per Microsoft request.
Update to the Firewall Table Rules table with two additional IP addresses of the new
13217
infrastructure in Japan.
Fix to Call Setup Rule; Added section for overcoming problem of not playing music on hold
13219
during conversational transfer.
Remote Replaces Mode parameter with value “Handle Locally” was added to the Teams IP
13330 Profile due to new Microsoft requirements. The Classification rule was updated.
Update to the Firewall Table Rules table due to new Microsoft requirements.
Updated Classification Table with stricter rules to only allow for documented Microsoft SIP
13335
Proxies.
13337 Note added detailing deployment in Office 365 GCC DoD and GCC High environments.
13338 TLS Private Key size of 1024 was removed. Microsoft subnets were updated in the
Classification and Firewall tables.
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.
- vi -
1. Introduction SBC for Teams DR Hosting
1 Introduction
This document describes how to connect AudioCodes' SBC to Teams Direct Routing Hosting model
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 and https://docs.microsoft.com/en-
us/microsoftteams/direct-routing-sbc-multiple-tenants.
This document is intended for IT or telephony professionals.
-1-
1. Introduction SBC for Teams DR Hosting
For implementing Microsoft Teams Direct Routing based on the configuration described in
this document, AudioCodes SBC must be installed with a License Key that includes the
following features:
◼ MSFT (general Microsoft license)
Note: By default, all AudioCodes media gateways and SBCs are shipped with this
license (except MSBR products, Mediant 500 SBC, and Mediant 500 Media Gateway).
◼ SW/TEAMS (Microsoft Teams license)
◼ Number of SBC sessions (based on requirements)
◼ Transcoding sessions (only if media transcoding is needed)
◼ Coders (based on requirements)
For more information about the License Key, contact your AudioCodes sales
representative.
-2-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
sbc1.audctrunk.aceducation.info
Enterprise 1
DMZ
sbc2.audctrunk.aceducation.info
Internet
Management LAN Firewall Phone System Teams Users
Station (OAMP)
Enterprise 2
ITSP sbc3.audctrunk.aceducation.info
Enterprise 3
Enterprise 1 Enterprise 3
SIP Trunk SIP Trunk
Enterprise 2
SIP Trunk
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, see AudioCodes' SIP
Trunk Configuration Notes (in the interoperability suite of documents).
-3-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
-4-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
2.1 Prerequisites
Before you begin configuration, make sure you have the below for every Hosting SBC you wish to
pair:
◼ Public IP address
◼ FQDN name matching the SIP addresses of the Teams users
◼ Public certificate, issued by one of the supported CAs
Please check the DNS configuration with TXT and that an A record has been validated.
-5-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
For activating the domain, the Hosting Provider needs to add at least one user with Microsoft plan
as Enterprise or Business with Phone System (e.g., E5 or E1/E3 with Phone System) from the SIP
domain registered for the carriers’ Office 365 tenant. For example, you can provide users
[email protected] with the Domain FQDN Customers.aceducation.info if this name
is registered for this tenant. You should create at least one licensed user belonging to the SBC domain
you added as described above.
-6-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
The following IP address and FQDN are used as examples in this guide:
Each customer needs to add at least one user from the Carrier’s SIP domain registered for the tenant.
For example, you can provide users [email protected] with the Domain FQDN
sbc2.Customers.aceducation.info so long as this name is registered for this tenant.
You should create at least one licensed user belonging to your SBC domain that you added in the step
above.
-7-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
IP Group
(Enerprise1
SIP Trunk)
IP Group
Proxy Set (Enerprise2 SIP SBC SIP
IP Group
SIP Trunk) Interface Interface
SIP IP Group
Phone System
Trunk (Enerprise3
SIP Trunk)
Configuration may be changed per customer request to a dedicated Proxy Set per IP Group
(Enterprise’s SIP Trunk).
The routing from the SIP Trunk to Direct Routing is dependent on the Class 4 switch routing method.
The routing decision can be based on:
◼ Customer DID Range
◼ Trunk Context (TGRP)
◼ IP Interface
◼ SIP Interface (UDP/TCP Port)
◼ Host name
◼ etc.
The configuration shown in this document is based on Customer DID Range using Dial Plan. For more
information, see the AudioCodes' documentation suite.
-8-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Vlan ID 1 Vlan ID 2
LAN DMZ
Management
Station (OAMP)
WAN
Phone System
Firewall
ITSP
-9-
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Based on your hardware configuration, you might have more than two ports.
- 10 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
To configure VLANs:
1. Open the Ethernet Device table (Setup menu > IP Network tab > Core Entities folder >
Ethernet Devices).
2. There will be one existing row for VLAN ID 1 and underlying interface GROUP_1.
3. Add another VLAN ID 2 for the WAN side.
Figure 11: Configured VLANs in the Ethernet Device Table
- 11 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
OAMP+ Media +
0 IPv4 Manual 10.15.77.77 16 10.15.0.1 10.15.27.1 LAN_IF vlan 1
Control
Media + Control
(as this interface According to
points to the 195.189.192.157 (DMZ 195.189.192.129 your Internet
1 IPv4 Manual 25 WAN_IF vlan 2
internet, enabling IP address of SBC) (router's IP address) provider's
OAMP is not instructions
recommended)
- 12 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
The Teams Direct Routing Interface only allows TLS connections from SBC devices for SIP traffic with
a certificate signed by one of the trusted Certificate Authorities. The currently supported Certification
Authorities can be found at:
https://docs.microsoft.com/en-us/microsoftteams/direct-routing-plan#public-trusted-certificate-
for-the-sbc
- 13 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Click Apply.
- 14 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
All other parameters can be left unchanged with their default values.
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 displayed 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.
- 15 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Click Apply; you should see the new TLS Context and option to manage the certificates at the
bottom of 'TLS Context' table.
Figure 16: 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 wildcard FQDN name
(based on example above, *.customers.ACeducation.info).
b. In the '1st Subject Alternative Name [SAN]' field, change the type to ‘DNS’ and enter the
SBC FQDN name (based on example above, customers.ACeducation.info).
c. In the '2nd Subject Alternative Name [SAN]' field, change the type to ‘DNS’ and enter the
wildcard FQDN name (based on example above, *.customers.ACeducation.info).
The domain portion of the Common Name [CN], 1st and 2nd Subject Alternative Name [SAN]
must match the SIP suffix configured for carrier Office 365 tenant (see Section 2.1.1.1).
d. Fill in the rest of the request fields according to your security provider's instructions.
e. Click the Create CSR button; a textual certificate signing request is displayed in the area
below the button:
- 16 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
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.
- 17 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
2.5.4 Deploying 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 in the lower part of the page:
Figure 19: 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:
- 18 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
The above method creates a signed certificate for an explicit device, on which a Certificate
Sign Request was generated (and signed with private key). To be able to use the same
wildcard certificate on multiple devices, use following methods.
- 19 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Microsoft 365 is updating services powering messaging, meetings, telephony, voice, and
video to use TLS certificates from a different set of Root Certificate Authorities (CAs). For
more details of the new Root CAs, refer to Microsoft technical guidance at Office TLS
Certificate Changes. Services began transitioning to the new Root CAs (e.g., DigiCert)
beginning in January 2022 and will continue through October 2022. During this migration
period, it’s possible to load both the old (Baltimore) and the new (DigiCert) Root certificate
to the same TLS Context.
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 DigiCert with:
Serial Number: 0x033af1e6a711a9a0bb2864b11d09fae5,
SHA-1 Thumbprint: DF3C24F9BFD666761B268073FE06D1CC8D4F82A4 and
SHA-256 Thumbprint: CB3CCBB76031E5E0138F8DD39A23F9DE47FFC35E43C1144CEA27D46A5AB1CB5F.
For more information on the DNS name, see Appendix B.
To trust this certificate, your SBC must have the certificate in Trusted Certificates storage.
Download the DigiCert Global Root G2 (df3c) certificate in PEM format from
https://www.digicert.com/kb/digicert-root-certificates.htm and follow the steps above to import
the certificate to the Trusted Root storage.
Before importing the DigiCert 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'.
- 20 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
- 21 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
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.
For implementing an MTLS connection with the Microsoft Teams network, configure ‘TLS
Mutual Authentication’ to “Enable” for the Teams SIP Interface.
- 22 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
- 23 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Configure the address of the Proxy Set according to the parameters described in the table
below (for more information, see Appendix B):
Table 8: Configuration Proxy Address for Teams Direct Routing
Transport Proxy Proxy Random
Index Proxy Address
Type Priority Weight
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.
If the SBC is deployed in Office 365 GCC DoD or GCC High environments, please contact
AudioCodes deployment services, since these environments have different configurations
(FQDNs) than the public Office 365 environment.
- 24 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Configure the address of the Proxy Set according to the parameters described in the table
below:
Table 9: Configuration Proxy Address for SIP Trunk
Transport Proxy Proxy Random
Index Proxy Address
Type Priority Weight
SIPTrunk.com:5060
0 UDP 0 0
(SIP Trunk IP / FQDN and port)
4. Click Apply.
- 25 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
6. Configure a dial plan rule according to the parameters described in the table below.
Table 10: Dial Plan Carriers’ Office 365 Teams Tenants
Index Name Prefix Tag
<FQDN name of the carrier customer 1 tenant in SBC>. For example,
0 Enterprise1 +19098[0000-9999]
sbc1.customers.ACeducation.info
<FQDN name of the carrier customer 2 tenant in SBC>. For example,
1 Enterprise2 +17093[0000-9999]
sbc2.customers.ACeducation.info
<FQDN name of the carrier customer 3 tenant in SBC>. For example,
2 Enterprise3 +18097[0000-9999]
sbc3.customers.ACeducation.info
- 26 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
To configure a Call Setup Rules based on customer DID range (Dial Plan):
1. Open the Call Setup Rules table (Setup menu > Signaling & Media tab > SIP Definitions folder
> Call Setup Rules).
2. Click New; the following dialog box appears:
Figure 28: Call Setup Rules Table - Add Dialog Box
3. Configure a Call Setup rule according to the parameters described in the table below.
Table 11: Call Setup Rules Table
Rules Query Action
Index Name Query Target Search Key Condition Action Subject Action Value
Set ID Type Type
TenantFQDN by Header.P-Asserted-
0 0 Dial Plan TeamsTenants DialPlan.Found exists var.session.TenantFQDN Modify DialPlan.Result
PAI Identity.URL.User
SIP Trunk
2 0 DstTags Modify var.session.TenantFQDN
DstTags
TenantFQDN by
3 1 Dial Plan TeamsTenants Param.Call.Dst.User DialPlan.Found exists var.session.TenantFQDN Modify DialPlan.Result
R-URI
- 27 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Parameter Value
Index 0
Name TeamsTenants (arbitrary name)
Manipulation Set ID 2
Condition Var.Session.TenantFQDN != ''
Action Subject Header.Contact.URL.Host
Action Type Modify
Action Value Var.Session.TenantFQDN
Figure 29: Configuring SIP Message Manipulation Rule 0 (for Teams IP Group)
- 28 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Configure another manipulation rule (Manipulation Set 1) for Teams IP Group. This rule
applies to messages received from the Teams IP Group. This rule removes the SIP Privacy
Header in all messages, except of call with presentation restriction.
Parameter Value
Index 1
Name Remove Privacy Header
Manipulation Set ID 1
Condition Header.Privacy exists And Header.From.URL !contains
'anonymous'
Action Subject Header.Privacy
Action Type Remove
Figure 30: Configuring SIP Message Manipulation Rule 1 (for Teams IP Group)
4. Configure another manipulation rule (Manipulation Set 1) for Teams IP Group. This rule
applies to messages received from the Teams IP Group. This rule removes the SIP P-Asserted-
Identity Header.
Parameter Value
Index 2
Name Remove PAI
Manipulation Set ID 1
Action Subject Header.P-Asserted-Identity
Action Type Remove
- 29 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Figure 31: Configuring SIP Message Manipulation Rule 2 (for Teams IP Group)
5. Configure a new manipulation rule (Manipulation Set 2) for Teams IP Group. This rule applies
to messages sent to the Teams IP Group. This rule adds a routing policy rule toward Microsoft
for handling different call forwarding scenarios (according to the action values shown below).
Parameter Value
Index 3
Name Teams Routing Policy (arbitrary name)
Manipulation Set ID 2
Condition
Action Subject header.X-MS-RoutingPolicies
Action Type Add
Action Value One of the following values: "none", "no_missed_call",
"disable_forwarding", "disable_forwarding_except_phone
- 30 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Figure 32: Configuring SIP Message Manipulation Rule 1 (for Teams IP Group) Disable Forwarding Example
- 31 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Click Apply and confirm the configuration change in the prompt that pops up.
- 32 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
To configure an IP Profile:
1. Open the Proxy Sets table (Setup menu > Signaling & Media tab > Coders & Profiles folder >
IP Profiles).
2. Click +New to add the IP Profile for the Direct Routing interface. Configure the parameters
using the table below as reference.
Table 12: Configuration Example: Teams IP Profile
Parameter Value
General
Name Teams (arbitrary descriptive name)
Media Security
SBC Media Security Mode Secured
SBC Early Media
Remote Early Media RTP Detection By Media (required, as Teams Direct Routing does not send RTP
Mode immediately to remote side when it sends a SIP 18x response)
SBC Media
Extension Coders Group AudioCodersGroups_1
RTCP Mode Generate Always (required, as some ITSPs do not send RTCP packets
while in Hold mode, but Microsoft expected them)
ICE Mode Lite (required only when Media Bypass is enabled on Teams)
SBC Signaling
SIP UPDATE Support Not Supported
Remote re-INVITE Support Supported Only With SDP
Remote Delayed Offer Support Not Supported
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 (some SIP Trunk may answer with a=inactive and IP=0.0.0.0
in response to the Re-Invite with Hold request from Teams.
Microsoft Media Stack doesn’t support this format. So, SBC will
replace 0.0.0.0 with its IP address)
All other parameters can be left unchanged with their default values.
- 33 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
4. Click +New to add the IP Profile for the SIP Trunks. Configure the parameters using the table
below as reference.
Table 13: Configuration Example: SIP Trunk IP Profile
Parameter Value
General
Name SIPTrunks (arbitrary descriptive name)
Media Security
SBC Media Security Mode Not Secured
SBC Signaling
P-Asserted-Identity Header Mode Add (required for anonymous calls)
SBC Forward and Transfer
Remote REFER Mode Handle Locally
Remote Replaces Mode Handle Locally
Yes (required, as some SIP Trunks do not play
Play RBT To Transferee
ring-back tone during transfer)
Remote 3xx Mode Handle Locally
All other parameters can be left unchanged with their default values.
Teams Hold music is not supported by Microsoft in consultative transfer of a PSTN call. The
transferee will hear silence during the transfer. To overcome this issue, it is possible to
configure SBC to play music during a consultative transfer. To do this, refer to Section 2.22.
- 34 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
To configure an IP Groups:
1. Open the IP Groups table (Setup menu > Signaling & Media tab > Core Entities folder > IP
Groups).
2. Configure IP Group for the Teams Direct Routing:
Parameter Value
Name Teams
Topology Location Up
Type Server
Proxy Set Teams
IP Profile Teams
Media Realm MRWan
Classify By Proxy Set Disable
<FQDN name of the SBC in the carrier tenant>
Local Host Name
(based on our example, customers.ACeducation.info).
Enable (Enables the SBC to include Microsoft's proprietary X-MS-
SBC header in outgoing SIP INVITE and OPTIONS messages in a
Teams Direct Routing Mode Microsoft Teams Direct Routing environment. The header is used
by Microsoft Teams to identify vendor equipment. The header's
value is in the format 'Audiocodes/<model>/<firmware>').
Always Use Src Address Yes
Call Setup Rules Set ID 0
Tags Teams
Inbound Message
1
Manipulation Set ID
Outbound Message
2
Manipulation Set
Proxy Keep-Alive using IP
Enable
Group settings
All other parameters can be left unchanged with their default values.
- 35 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Configure IP Groups for the Enterprise’s SIP Trunks (for each enterprise create a dedicated IP
Group):
Parameter Value
Name Enterprise1-SIPTrunk (arbitrary descriptive name)
Type Server
Proxy Set SIPTrunks
IP Profile SIPTrunks
Media Realm MRLan or MRWan (according to your network environment)
Call Setup Rules Set ID 1
<FQDN name of the SBC in the customer tenant>
Tags
(For example, sbc1.customers.ACeducation.info)
All other parameters can be left unchanged with their default values.
- 36 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
To enable SRTP:
1. Open the Media Security page (Setup menu > Signaling & Media tab > Media folder > Media
Security).
2. From the 'Media Security' drop-down list, select Enable to enable SRTP.
Figure 35: Configuring Media Security Parameter
3. Click Apply.
- 37 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Parameter Value
Index 0
Name Teams-Contact (arbitrary descriptive name)
Condition Header.Contact.URL.Host contains 'pstnhub.microsoft.com'
3. Click Apply.
- 38 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
3. Click Apply.
- 39 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
Refer Termination
1 Any REFER Teams Request URI Teams
(arbitrary name)
The routing configuration may change according to your specific deployment topology.
- 40 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
For information about prerequisites and planning your deployment, refer to Plan Direct
Routing.
Be aware, that if in your configuration, connectivity to SIP Trunk (or other entities) is
performed through the same IP Interface as Teams (WAN_IF in our example), you must
add rules to allow traffic from these entities. See an example in the row of index 3.
- 41 -
2. Configuring AudioCodes' SBC SBC for Teams DR Hosting
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.
- 42 -
3. Verifying the Pairing between the SBC and Direct Routing SBC for Teams DR Hosting
- 43 -
4. Making a Test Call SBC for Teams DR Hosting
- 44 -
5. Configuring via UMP 365 (Optional) SBC for Teams DR Hosting
For a detailed description, refer to AudioCodes User Management Pack 365 SP Edition Installation
and Administration Guide.
- 45 -
A. Syntax Requirements for SIP Messages 'INVITE' and 'OPTIONS' SBC for Teams DR Hosting
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 subdomain in the SBC>:<SBC
Port>;<transport type>
• If the parameter is not configured correctly, calls are rejected with a '403 Forbidden'
message.
- 46 -
A. Syntax Requirements for SIP Messages 'INVITE' and 'OPTIONS' SBC for Teams DR Hosting
◼ Contact header
• MUST: When sending OPTIONS to the Direct Routing interface, the 'CONTACT' header
must have the Carrier Trunk FQDN in the URI hostname
• Syntax: Contact: <phone number>@<Carrier Trunk FQDN>:<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 17: Syntax Requirements for an 'OPTIONS' Message
Parameter Where configured How to configure
Contact Setup > Signaling and Media > Core Entities > IP Groups> See Section 2.16.
<Group Name> > Local Host Name
In IP Group, 'Contact' must be configured. In this field
('Local Host Name'), define the local host name of the SBC
as a string, for example, sbc1.AUDCTrunk.ACeducation.info.
The name changes the host name in the call received from
the IP Group.
- 47 -
A. Syntax Requirements for SIP Messages 'INVITE' and 'OPTIONS' SBC for Teams DR Hosting
- 48 -
B. SIP Proxy Direct Routing Requirements SBC for Teams DR Hosting
- 49 -
International Headquarters
1 Hayarden Street,
Airport City
Lod 7019900, Israel
Tel: +972-3-976-4000
Fax: +972-3-976-4040
AudioCodes Inc.
80 Kingsbridge Rd
Piscataway, NJ 08854, USA
Tel: +1-732-469-0880
Fax: +1-732-469-2298
©2023 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, and AudioCodes Room Experience 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-13338