Skip to content

Commit 1e9d21d

Browse files
committed
#3133279 Direct routing GA - Quick Starts
Upgrade to GA version
1 parent f1f75be commit 1e9d21d

File tree

4 files changed

+11
-27
lines changed

4 files changed

+11
-27
lines changed

articles/communication-services/quickstarts/telephony/includes/voice-routing-sdk-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Change your directory to the newly created app folder and use the dotnet build c
4545
While still in the application directory, install the Azure Communication PhoneNumbers client library for .NET package by using the dotnet add package command.
4646

4747
``` console
48-
dotnet add package Azure.Communication.PhoneNumbers --version 1.1.0-beta.3
48+
dotnet add package Azure.Communication.PhoneNumbers --version 1.1.0
4949
```
5050

5151
Add a using directive to the top of **Program.cs** to include the namespaces.

articles/communication-services/quickstarts/telephony/includes/voice-routing-sdk-java.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,11 @@ You notice that the 'generate' task created a directory with the same name as th
4242
Open the **pom.xml** file in your text editor. Add the following dependency elements to the group of dependencies.
4343

4444
```xml
45-
<dependencyManagement>
46-
<dependencies>
47-
<dependency>
48-
<groupId>com.azure</groupId>
49-
<artifactId>azure-sdk-bom</artifactId>
50-
<version>1.2.9</version>
51-
<type>pom</type>
52-
<scope>import</scope>
53-
</dependency>
54-
</dependencies>
55-
</dependencyManagement>
5645
<dependencies>
57-
<dependency>
58-
<groupId>com.azure</groupId>
59-
<artifactId>azure-identity</artifactId>
60-
<version>1.2.3</version>
61-
</dependency>
6246
<dependency>
6347
<groupId>com.azure</groupId>
6448
<artifactId>azure-communication-phonenumbers</artifactId>
65-
<version>1.1.0-beta.14</version>
49+
<version>1.1.0</version>
6650
</dependency>
6751
</dependencies>
6852
```
@@ -79,8 +63,8 @@ From the project directory:
7963
Use the following code to begin:
8064

8165
```java
82-
import com.azure.communication.phonenumbers.SipRoutingAsyncClient;
83-
import com.azure.communication.phonenumbers.SipRoutingClientBuilder;
66+
import com.azure.communication.phonenumbers.siprouting.SipRoutingAsyncClient;
67+
import com.azure.communication.phonenumbers.siprouting.SipRoutingClientBuilder;
8468
import com.azure.communication.phonenumbers.siprouting.models.SipTrunk;
8569
import com.azure.communication.phonenumbers.siprouting.models.SipTrunkRoute;
8670
import static java.util.Arrays.asList;
@@ -173,15 +157,15 @@ Add 2 imports:
173157
```java
174158
import java.util.Collections;
175159
import java.util.List;
176-
``` 
160+
```
177161

178162
Code to Delete Direct Routing config:
179163

180164
```java
181165
//delete all configured voice routes
182166
System.out.println("Delete all routes");
183167
List<SipTrunkRoute> routes = Collections.<SipTrunkRoute> emptyList();
184-
sipRoutingAsyncClient.setRoutes(routes).block(); 
168+
sipRoutingAsyncClient.setRoutes(routes).block();
185169

186170
//delete all trunks
187171
System.out.println("Delete all trunks");
@@ -209,7 +193,7 @@ Then, build the package.
209193
mvn package
210194
```
211195

212-
Run the followingmvncommand to execute the app.
196+
Run the following mvn command to execute the app.
213197

214198
``` console
215199
mvn exec:java -Dexec.mainClass="com.communication.quickstart.App" -Dexec.cleanupDaemonThreads=false

articles/communication-services/quickstarts/telephony/includes/voice-routing-sdk-jscript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ main();
5252
Use `npm install` command to install the Azure Communication Services Phone Numbers client library for JavaScript.
5353

5454
``` console
55-
npm install @azure/communication-phone-numbers@1.2.0-alpha.20230214.1 --save
55+
npm install @azure/communication-phone-numbers --save
5656
```
5757

5858
The `--save` option adds the library as a dependency in your package.json file.
@@ -139,7 +139,7 @@ You can't edit or remove single voice route. Entire voice routing configuration
139139
``` javascript
140140
//delete all configured voice routes
141141
console.log("Deleting all routes...");
142-
await client.setRoutes([]); 
142+
await client.setRoutes([]);
143143

144144
//delete all trunks
145145
console.log("Deleting all trunks...");

articles/communication-services/quickstarts/telephony/includes/voice-routing-sdk-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ except Exception as ex:
5252
While still in the application directory, install the Azure Communication Services Administration client library for Python package by using the `pip install` command.
5353

5454
```console
55-
pip install azure-communication-phonenumbers==1.1.0b3
55+
pip install azure-communication-phonenumbers==1.1.0
5656
```
5757

5858
## Authenticate the client
@@ -149,7 +149,7 @@ You can't edit or remove single voice route. Entire voice routing configuration
149149
``` python
150150
#delete all configured voice routes
151151
print('Deleting all routes...')
152-
sip_routing_client.set_routes([]) 
152+
sip_routing_client.set_routes([])
153153

154154
#delete all trunks
155155
print('Deleting all trunks...')

0 commit comments

Comments
 (0)