Skip to content

Commit 5b75d3e

Browse files
incremental quickstarts update
1 parent 2ee7839 commit 5b75d3e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,16 @@ await client.SetTrunkAsync(usTrunk);
116116
117117
### Removing a direct routing configuration
118118

119-
You can't edit or remove single voice route. Entire voice routing configuration should be overwritten. Here's the example of an empty list that removes all the routes:
119+
You can't edit or remove single voice route. Entire voice routing configuration should be overwritten. Here's the example of an empty list that removes all the routes and trunks:
120120

121121
``` csharp
122+
//delete all configured voice routes
123+
await client.SetRoutesAsync(new List<SipTrunkRoute>());
122124

123-
125+
//delete all trunks
126+
await client.SetTrunksAsync(new List<SipTrunk>());
124127
```
125128

126-
127129
You can delete a single trunk (SBC), if it isn't used in any voice route. If SBC is listed in any voice route, that route should be deleted first.
128130

129131
``` csharp

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,16 @@ sip_routing_client.set_trunk(new_trunk)
144144
145145
### Removing a direct routing configuration
146146

147-
You can't edit or remove single voice route. Entire voice routing configuration should be overwritten. Here's the example of an empty list that removes all the routes:
147+
You can't edit or remove single voice route. Entire voice routing configuration should be overwritten. Here's the example of an empty list that removes all the routes and trunks:
148148

149149
``` python
150+
#delete all configured voice routes
151+
print('Deleting all routes...')
152+
sip_routing_client.set_routes([]) 
150153

151-
154+
#delete all trunks
155+
print('Deleting all trunks...')
156+
sip_routing_client.set_trunks([])
152157
```
153158

154159
You can delete a single trunk (SBC), if it isn't used in any voice route. If SBC is listed in any voice route, that route should be deleted first.

0 commit comments

Comments
 (0)