You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communications-gateway/configure-test-customer-teams-direct-routing.md
+14-34Lines changed: 14 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,42 +45,22 @@ You must be able to configure the tenant with at least two user or resource acco
45
45
- You need two user or resource accounts to activate the Azure Communications Gateway domains that you add to Microsoft 365 by following this article. Lab deployments require one account.
46
46
- You need at least one user account to use for testing later when you carry out [Configure test numbers for Microsoft Teams Direct Routing with Azure Communications Gateway](configure-test-numbers-teams-direct-routing.md). You can reuse one of the accounts that you use to activate the domains, or you can use an account with one of the other domain names for this tenant.
47
47
48
-
## Choose a DNS subdomain label to use to identify the customer
48
+
## Choose a DNS subdomain label for the test customer tenant
49
49
50
50
Azure Communications Gateway has _per-region domain names_ for connecting to Microsoft Teams Direct Routing. You need to set up subdomains of these domain names for your test customer. Microsoft Phone System and Azure Communications Gateway use these subdomains to match calls to tenants.
51
51
52
-
1. Work out the per-region domain names for connecting to Microsoft Teams Direct Routing. These use the form `1-r<region-number>.<base-domain-name>`. The base domain name is the **Domain** on your Azure Communications Gateway resource in the [Azure portal](https://azure.microsoft.com/).
53
-
1. Choose a DNS label to identify the test customer.
54
-
- The label must be up to **eight** characters in length and can only contain letters, numbers, underscores, and dashes.
55
-
- You must not use wildcard subdomains or subdomains with multiple labels.
56
-
- For example, you could allocate the label `test`.
57
-
> [!IMPORTANT]
58
-
> The full customer subdomains (including the per-region domain names) must be a maximum of 48 characters. Microsoft Entra ID does not support domain names of more than 48 characters. For example, the customer subdomain `contoso1.1-r1.a1b2c3d4e5f6g7h8.commsgw.azure.com` is 48 characters.
59
-
1. Use this label to create a _customer subdomain_ of each per-region domain name for your Azure Communications Gateway.
60
-
1. Make a note of the label you choose and the corresponding customer subdomains.
61
-
62
-
For example:
63
-
- Your base domain name might be `<deployment-id>.commsgw.azure.com`, where `<deployment-id>` is autogenerated and unique to the deployment.
64
-
- Your per-region domain names are therefore:
65
-
-`1-r1.<deployment-id>.commsgw.azure.com`
66
-
-`1-r2.<deployment-id>.commsgw.azure.com`
67
-
- If you allocate the label `test`, this label combined with the per-region domain names creates the following customer subdomains for your test customer:
68
-
-`test.1-r1.<deployment-id>.commsgw.azure.com`
69
-
-`test.1-r2.<deployment-id>.commsgw.azure.com`
70
-
71
-
> [!IMPORTANT]
72
-
> The per-region domain names for connecting to Microsoft Teams Direct Routing are different to the per-region domain names for connecting to your network.
> Lab deployments have one per-region domain name. Your test customer therefore also only has one customer subdomain.
76
56
77
-
## Start registering the subdomains in the customer tenant and get DNS TXT values
57
+
## Start registering the subdomains in the test customer tenant and get DNS TXT values
78
58
79
-
To route calls to a customer tenant, the customer tenant must be configured with the customer subdomains that you allocated in [Choose a DNS subdomain label to use to identify the customer](#choose-a-dns-subdomain-label-to-use-to-identify-the-customer). Microsoft 365 then requires you (as the carrier) to create DNS records that use a verification code from the customer tenant.
59
+
For Microsoft Phone System to route calls to the test customer tenant correctly, the customer tenant must be configured with the customer subdomains that you allocated in [Choose a DNS subdomain label for the test customer tenant](#choose-a-dns-subdomain-label-for-the-test-customer-tenant). Microsoft 365 then requires you (as the carrier) to create DNS records that use a verification code from the customer tenant.
80
60
81
61
1. Sign into the Microsoft 365 admin center for the customer tenant as a Global Administrator.
82
62
1. Using [Add a subdomain to the customer tenant and verify it](/microsoftteams/direct-routing-sbc-multiple-tenants#add-a-subdomain-to-the-customer-tenant-and-verify-it):
83
-
1. Register the first customer subdomain (for example `test.1-r1.<deployment-id>.commsgw.azure.com`).
63
+
1. Register the first customer subdomain (for example `contoso.1-r1.<deployment-id>.commsgw.azure.com`).
84
64
1. Start the verification process using TXT records.
85
65
1. Note the TXT value that Microsoft 365 provides.
86
66
1. (Production deployments only) Repeat the previous step for the second customer subdomain.
@@ -100,10 +80,10 @@ You can use Azure Communications Gateway's Number Management Portal (preview) or
100
80
1. Select **Accounts**.
101
81
1. Select **Create account**.
102
82
1. Enter an **Account name** and select the **Enable Teams Direct Routing** checkbox.
103
-
1. Set **Teams tenant ID** to the ID of your test customer tenant.
104
-
1. Optionally, select **Enable call screening**. This screening ensures that customers can only place Direct Routing calls from numbers that you have assigned to them.
105
-
1. Set **Subdomain** to the label for the subdomain that you chose in [Choose a DNS subdomain label to use to identify the customer](#choose-a-dns-subdomain-label-to-use-to-identify-the-customer) (for example, `test`).
106
-
1. Set the **Subdomain token region** fields to the TXT values that you obtained in [Start registering the subdomains in the customer tenant and get DNS TXT values](#start-registering-the-subdomains-in-the-customer-tenant-and-get-dns-txt-values).
83
+
1. Set **Teams tenant ID** to the ID of the customer tenant.
84
+
1. Optionally, select **Enable call screening**. This screening ensures that customers can only place Direct Routing calls from numbers that you assign to them.
85
+
1. Set **Subdomain** to the label for the subdomain that you chose in [Choose a DNS subdomain label for the test customer tenant](#choose-a-dns-subdomain-label-for-the-test-customer-tenant) (for example, `contoso`).
86
+
1. Set the **Subdomain token region** fields to the TXT values that you obtained in [Start registering the subdomains in the test customer tenant and get DNS TXT values](#start-registering-the-subdomains-in-the-test-customer-tenant-and-get-dns-txt-values).
107
87
1. Select **Create**.
108
88
1. Confirm that the DNS records have been generated.
109
89
1. On the **Accounts** pane, select the account name in the list.
@@ -113,8 +93,8 @@ You can use Azure Communications Gateway's Number Management Portal (preview) or
113
93
114
94
1. Use the Provisioning API to configure an account for the customer. The request must:
115
95
- Enable Direct Routing for the account.
116
-
- Specify the label for the subdomain that you chose in [Choose a DNS subdomain label to use to identify the customer](#choose-a-dns-subdomain-label-to-use-to-identify-the-customer) (for example, `test`).
117
-
- Specify the DNS TXT values from [Start registering the subdomains in the customer tenant and get DNS TXT values](#start-registering-the-subdomains-in-the-customer-tenant-and-get-dns-txt-values). These values allow Azure Communications Gateway to generate DNS records for the subdomain.
96
+
- Specify the label for the subdomain that you chose in [Choose a DNS subdomain label for the test customer tenant](#choose-a-dns-subdomain-label-for-the-test-customer-tenant) (for example, `contoso`).
97
+
- Specify the DNS TXT values from [Start registering the subdomains in the test customer tenant and get DNS TXT values](#start-registering-the-subdomains-in-the-test-customer-tenant-and-get-dns-txt-values). These values allow Azure Communications Gateway to generate DNS records for the subdomain.
118
98
2. Use the Provisioning API to confirm that the DNS records have been generated, by checking the `direct_routing_provisioning_state` for the account.
119
99
120
100
For example API requests, see [Create an account to represent a customer](/rest/api/voiceservices/#create-an-account-to-represent-a-customer) and [View the details of the account](/rest/api/voiceservices/#view-the-details-of-the-account) in the _API Reference_ for the Provisioning API.
@@ -123,7 +103,7 @@ For example API requests, see [Create an account to represent a customer](/rest/
123
103
124
104
## Finish verifying the domains in the customer tenant
125
105
126
-
When you have used Azure Communications Gateway to generate the DNS records for the customer subdomains, verify the subdomains in the Microsoft 365 admin center for your customer tenant.
106
+
After you use Azure Communications Gateway to generate the DNS records for the customer subdomains, verify the subdomains in the Microsoft 365 admin center for your customer tenant.
127
107
128
108
1. Sign into the Microsoft 365 admin center for the customer tenant as a Global Administrator.
129
109
1. Select **Settings** > **Domains**.
@@ -134,13 +114,13 @@ When you have used Azure Communications Gateway to generate the DNS records for
134
114
To activate the customer subdomains in Microsoft 365, set up at least one user or resource account licensed for Microsoft Teams for each domain name. For information on the licenses you can use and instructions, see [Activate the subdomain name](/microsoftteams/direct-routing-sbc-multiple-tenants#activate-the-subdomain-name).
135
115
136
116
> [!IMPORTANT]
137
-
> Ensure the accounts use the customer subdomains (for example, `test.1-r1.<deployment-id>.commsgw.azure.com`), instead of any existing domain names in the tenant.
117
+
> Ensure the accounts use the customer subdomains (for example, `contoso.1-r1.<deployment-id>.commsgw.azure.com`), instead of any existing domain names in the tenant.
138
118
139
119
## Configure the customer tenant's call routing to use Azure Communications Gateway
140
120
141
121
In the customer tenant, [configure a call routing policy](/microsoftteams/direct-routing-voice-routing) (also called a voice routing policy) with a voice route that routes calls to Azure Communications Gateway.
142
122
143
-
- Set the PSTN gateway to the customer subdomains for Azure Communications Gateway (for example, `test.1-r1.<deployment-id>.commsgw.azure.com` and `test.1-r2.<deployment-id>.commsgw.azure.com`). This step sets up _derived trunks_ for the customer tenant, as described in the [Microsoft Teams documentation for creating trunks and provisioning users for multiple tenants](/microsoftteams/direct-routing-sbc-multiple-tenants#create-a-trunk-and-provision-users).
123
+
- Set the PSTN gateway to the customer subdomains for Azure Communications Gateway (for example, `contoso.1-r1.<deployment-id>.commsgw.azure.com` and `contoso.1-r2.<deployment-id>.commsgw.azure.com`). This step sets up _derived trunks_ for the customer tenant, as described in the [Microsoft Teams documentation for creating trunks and provisioning users for multiple tenants](/microsoftteams/direct-routing-sbc-multiple-tenants#create-a-trunk-and-provision-users).
144
124
- Don't configure any users to use the call routing policy yet.
Copy file name to clipboardExpand all lines: articles/communications-gateway/configure-test-numbers-teams-direct-routing.md
+2-28Lines changed: 2 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,6 @@ ms.date: 03/31/2024
14
14
15
15
To test Microsoft Teams Direct Routing with Azure Communications Gateway, you need a test customer tenant with test users and numbers. By following this article, you can set up the required user and number configuration in the customer Microsoft 365 tenant, on Azure Communications Gateway and in your network. You can then start testing.
16
16
17
-
> [!TIP]
18
-
> When you allocate numbers to a real customer, you'll typically need to ask them to change their tenant's configuration, because your organization won't have permission. You'll still need to make configuration changes on Azure Communications Gateway and to your network.
19
-
20
17
## Prerequisites
21
18
22
19
You must have at least one number that you can allocate to your test tenant.
@@ -38,36 +35,13 @@ You must be able to sign in to the Microsoft 365 admin center for your test cust
38
35
39
36
## Configure the test numbers on Azure Communications Gateway
40
37
41
-
In [Configure a test customer for Microsoft Teams Direct Routing with Azure Communications Gateway](configure-test-customer-teams-direct-routing.md), you configured Azure Communications Gateway with an account for the test customer.
38
+
In [Configure a test customer for Microsoft Teams Direct Routing with Azure Communications Gateway](configure-test-customer-teams-direct-routing.md), you configured Azure Communications Gateway with an account for the test customer. You must add the test numbers to this account.
42
39
43
40
We recommend using the Number Management Portal (preview) to provision the test numbers. Alternatively, you can use Azure Communications Gateway's Provisioning API (preview).
You can configure numbers directly in the Number Management Portal, or by uploading a CSV file containing number configuration.
48
-
49
-
1. From the overview page for your Communications Gateway resource, find the **Number Management** section in the sidebar. Select **Accounts**.
50
-
1. Select the checkbox next to the enterprise's **Account name** and select **View numbers**.
51
-
1. Select **Create numbers**.
52
-
1. To configure the numbers directly in the Number Management Portal:
53
-
1. Select **Manual input**.
54
-
1. Select **Enable Teams Direct Routing**.
55
-
1. Optionally, enter a value for **Custom SIP header**.
56
-
1. Add the numbers in **Telephone Numbers**.
57
-
1. Select **Create**.
58
-
1. To upload a CSV containing multiple numbers:
59
-
1. Prepare a `.csv` file. It must use the headings shown in the following table, and contain one number per line (up to 10,000 numbers).
60
-
61
-
| Heading | Description | Valid values |
62
-
|---------|--------------|--------------|
63
-
|`telephoneNumber`|The number to upload | E.164 numbers, including `+` and the country code |
64
-
|`accountName`| The account to upload the number to | The name of an existing account |
65
-
|`serviceDetails_teamsDirectRouting_enabled`| Whether Microsoft Teams Direct Routing is enabled |`true` or `false`|
66
-
|`configuration_customSipHeader`| Optional: the value for a SIP custom header. | Can only contain letters, numbers, underscores, and dashes. Can be up to 100 characters in length. |
67
-
68
-
1. Select **File Upload**.
69
-
1. Select the `.csv` file that you prepared.
70
-
1. Select **Upload**.
44
+
[!INCLUDE [instructions for configuring Direct Routing numbers in the portal](includes/communications-gateway-direct-routing-configure-numbers-portal.md)]
You can configure numbers directly in the Number Management Portal, or by uploading a CSV file containing number configuration.
10
+
11
+
1. From the overview page for your Communications Gateway resource, find the **Number Management** section in the sidebar. Select **Accounts**.
12
+
1. Select the checkbox next to the enterprise's **Account name** and select **View numbers**.
13
+
1. Select **Create numbers**.
14
+
1. To configure the numbers directly in the Number Management Portal:
15
+
1. Select **Manual input**.
16
+
1. Select **Enable Teams Direct Routing**.
17
+
1. Optionally, enter a value for **Custom SIP header**.
18
+
1. Add the numbers in **Telephone Numbers**.
19
+
1. Select **Create**.
20
+
1. To upload a CSV containing multiple numbers:
21
+
1. Prepare a `.csv` file. It must use the headings shown in the following table, and contain one number per line (up to 10,000 numbers).
22
+
23
+
| Heading | Description | Valid values |
24
+
|---------|--------------|--------------|
25
+
|`telephoneNumber`|The number to upload | E.164 numbers, including `+` and the country code |
26
+
|`accountName`| The account to upload the number to | The name of an existing account |
27
+
|`serviceDetails_teamsDirectRouting_enabled`| Whether Microsoft Teams Direct Routing is enabled |`true` or `false`|
28
+
|`configuration_customSipHeader`| Optional: the value for a SIP custom header. | Can only contain letters, numbers, underscores, and dashes. Can be up to 100 characters in length. |
1. Work out the per-region domain names for connecting to Microsoft Teams Direct Routing. These domain names use the form `1-r<region-number>.<base-domain-name>`. The base domain name is the **Domain** on your Azure Communications Gateway resource in the [Azure portal](https://azure.microsoft.com/).
10
+
1. Choose a DNS label to identify the test customer.
11
+
- The label must be up to **eight** characters in length and can only contain letters, numbers, underscores, and dashes.
12
+
- You must not use wildcard subdomains or subdomains with multiple labels.
13
+
- For example, you could allocate the label `contoso`.
14
+
> [!IMPORTANT]
15
+
> The full customer subdomains (including the per-region domain names) must be a maximum of 48 characters. Microsoft Entra ID does not support domain names of more than 48 characters. For example, the customer subdomain `contoso1.1-r1.a1b2c3d4e5f6g7h8.commsgw.azure.com` is 48 characters.
16
+
1. Use this label to create a _customer subdomain_ of each per-region domain name for your Azure Communications Gateway.
17
+
1. Make a note of the label you choose and the corresponding customer subdomains.
18
+
19
+
For example:
20
+
- Your base domain name might be `<deployment-id>.commsgw.azure.com`, where `<deployment-id>` is autogenerated and unique to the deployment.
21
+
- Your per-region domain names are therefore:
22
+
-`1-r1.<deployment-id>.commsgw.azure.com`
23
+
-`1-r2.<deployment-id>.commsgw.azure.com`
24
+
- If you allocate the label `contoso`, this label combined with the per-region domain names creates the following customer subdomains for your test customer:
25
+
-`contoso.1-r1.<deployment-id>.commsgw.azure.com`
26
+
-`contoso.1-r2.<deployment-id>.commsgw.azure.com`
27
+
28
+
> [!IMPORTANT]
29
+
> The per-region domain names for connecting to Microsoft Teams Direct Routing are different to the per-region domain names for connecting to your network.
0 commit comments