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/communication-services/quickstarts/telephony/includes/voice-routing-sdk-jscript.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ ms.author: nikuklic
24
24
25
25
Find the finalized code for the following procedures on [GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/direct-routing-quickstart).
26
26
27
+
You can also find more usage examples for `SipRoutingClient` on [GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/communication/azure-communication-phonenumbers/src/samples/java/com/azure/communication/phonenumbers/siprouting/AsyncClientJavaDocCodeSnippets.java).
28
+
27
29
## Create a new Node.js application
28
30
29
31
First, open your terminal or command window, create a new directory for your app, and go to it:
@@ -53,7 +55,7 @@ main();
53
55
Use the `npm install` command to install the Azure Communication Services Phone Numbers client library for JavaScript:
The `--save` option adds the library as a dependency in your *package.json* file.
@@ -97,10 +99,11 @@ Azure Communication Services direct routing allows communication with registered
97
99
98
100
### Create or update routes
99
101
100
-
> [!NOTE]
101
-
> The order of routes determines the priority of routes. The first route that matches the regex will be picked for a call.
102
+
Provide routing rules for outbound calls. Each rule consists of two parts: a regex pattern that should match a dialed phone number and the FQDN of a registered trunk where call is routed.
103
+
104
+
The order of routes determines the priority of routes. The first route that matches the regex will be picked for a call.
102
105
103
-
Provide routing rules for outbound calls. Each rule consists of two parts: a regex pattern that should match a dialed phone number and the FQDN of a registered trunk where call is routed. In this example, you create one route for numbers that start with `+1` and a second route for numbers that start with just `+`:
106
+
In this example, you create one route for numbers that start with `+1` and a second route for numbers that start with just `+`:
104
107
105
108
```javascript
106
109
awaitclient.setRoutes([
@@ -157,8 +160,5 @@ You can use the following example to delete a single trunk (SBC), if no voice ro
157
160
Use the node command to run the code that you added to the `direct-routing-quickstart.js` file:
158
161
159
162
```console
160
-
node direct-routing-quickstart.js
163
+
node direct-routing-quickstart.js
161
164
```
162
-
163
-
> [!NOTE]
164
-
> You can find more usage examples for `SipRoutingClient` on [GitHub](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/communication/azure-communication-phonenumbers/src/samples/java/com/azure/communication/phonenumbers/siprouting/AsyncClientJavaDocCodeSnippets.java).
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/telephony/includes/voice-routing-sdk-portal.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,9 @@ ms.author: nikuklic
19
19
- The fully qualified domain name (FQDN) and port number of a session border controller (SBC) in an operational telephony system.
20
20
- The [verified domain name](../../../how-tos/telephony/domain-validation.md) of the SBC FQDN.
21
21
22
+
> [!NOTE]
23
+
> You can find more usage examples for `SipRoutingClient` on [GitHub](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/README.md#siproutingclient).
24
+
22
25
## Add a session border controller
23
26
24
27
1. On the left pane, under **Voice Calling - PSTN**, select **Direct routing**. On the **Session Border Controller** tab, select **Configure**.
@@ -66,8 +69,4 @@ To delete an SBC:
66
69
1. Clear the FQDN and port fields for the SBC that you want to remove, and then select **Next**.
67
70
1. On the **Voice Routes** tab, review the voice routing configuration. Make changes if needed, and then select **Save**.
68
71
69
-
> [!NOTE]
70
-
> When you remove an SBC that's associated with a voice route, you can choose a different SBC for the route on the **Voice Routes** tab. The voice route without an SBC will be deleted.
71
-
72
-
> [!NOTE]
73
-
> You can find more usage examples for `SipRoutingClient` on [GitHub](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/README.md#siproutingclient).
72
+
When you remove an SBC that's associated with a voice route, you can choose a different SBC for the route on the **Voice Routes** tab. The voice route without an SBC will be deleted.
0 commit comments