Skip to content

Commit 410c966

Browse files
Merge pull request #248511 from rzdor/ruslanz/click-to-call-startup
fix documentation
2 parents d0eab4a + cce07b3 commit 410c966

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

articles/communication-services/quickstarts/voice-video-calling/get-started-teams-auto-attendant.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ ms.custom: mode-other, devx-track-js
1313

1414
# Quickstart: Join your calling app to a Teams Auto Attendant
1515

16+
[!INCLUDE [Public Preview](../../../communication-services/includes/public-preview-include-document.md)]
17+
1618
In this quickstart you are going to learn how to start a call from Azure Communication Services user to Teams Auto Attendant. You are going to achieve it with the following steps:
1719

1820
1. Enable federation of Azure Communication Services resource with Teams Tenant.

articles/communication-services/quickstarts/voice-video-calling/get-started-teams-call-queue.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ ms.custom: mode-other, devx-track-js
1313

1414
# Quickstart: Join your calling app to a Teams call queue
1515

16+
[!INCLUDE [Public Preview](../../../communication-services/includes/public-preview-include-document.md)]
17+
1618
In this quickstart you are going to learn how to start a call from Azure Communication Services user to Teams Call Queue. You are going to achieve it with the following steps:
1719

1820
1. Enable federation of Azure Communication Services resource with Teams Tenant.

articles/communication-services/quickstarts/voice-video-calling/includes/teams-auto-attendant/teams-auto-attendant-javascript.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Use the `npm install` command to install the Azure Communication Services Callin
2929
> This quickstart uses the Azure Communication Services Calling SDK version `latest`.
3030
3131
```console
32-
npm install @azure/communication-common --save
32+
npm install @azure/communication-common@next --save
3333
npm install @azure/communication-calling@latest --save
3434
```
3535

@@ -63,7 +63,7 @@ Here's the code:
6363
<br>
6464
<input id="application-object-id"
6565
type="text"
66-
placeholder="Enter application objectId identity in format: '28:orgid:USER_GUID'"
66+
placeholder="Enter application objectId identity in format: 'APP_GUID'"
6767
style="margin-bottom:1em; width: 500px; display: block;"/>
6868
<button id="start-call-button" type="button" disabled="true">Start Call</button>
6969
<button id="hangup-call-button" type="button" disabled="true">Hang up Call</button>
@@ -119,7 +119,7 @@ let localVideoStreamRenderer;
119119
// UI widgets
120120
let userAccessToken = document.getElementById('user-access-token');
121121
let applicationObjectId = document.getElementById('application-object-id');
122-
let initializeCallAgentButton = document.getElementById('initialize-call-agent');
122+
let initializeCallAgentButton = document.getElementById('initialize-teams-call-agent');
123123
let startCallButton = document.getElementById('start-call-button');
124124
let hangUpCallButton = document.getElementById('hangup-call-button');
125125
let acceptCallButton = document.getElementById('accept-call-button');
@@ -169,7 +169,7 @@ startCallButton.onclick = async () => {
169169
try {
170170
const localVideoStream = await createLocalVideoStream();
171171
const videoOptions = localVideoStream ? { localVideoStreams: [localVideoStream] } : undefined;
172-
call = teamsCallAgent.startCall([{ botId: applicationObjectId.value.trim() }], { videoOptions: videoOptions });
172+
call = callAgent.startCall([{ botId: applicationObjectId.value.trim(), cloud:"public" }], { videoOptions: videoOptions });
173173
// Subscribe to the call's properties and events.
174174
subscribeToCall(call);
175175
} catch (error) {

articles/communication-services/quickstarts/voice-video-calling/includes/teams-call-queue/teams-call-queue-javascript.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Use the `npm install` command to install the Azure Communication Services Callin
2929
> This quickstart uses the Azure Communication Services Calling SDK version `latest`.
3030
3131
```console
32-
npm install @azure/communication-common --save
32+
npm install @azure/communication-common@next --save
3333
npm install @azure/communication-calling@latest --save
3434
```
3535

@@ -61,9 +61,9 @@ Here's the code:
6161
<button id="initialize-teams-call-agent" type="button">Initialize Call Agent</button>
6262
<br>
6363
<br>
64-
<input id="call-queue-id"
64+
<input id="application-object-id"
6565
type="text"
66-
placeholder="Enter callee's Teams user identity in format: '28:orgid:USER_GUID'"
66+
placeholder="Enter callee's Teams user identity in format: 'APP_GUID'"
6767
style="margin-bottom:1em; width: 500px; display: block;"/>
6868
<button id="start-call-button" type="button" disabled="true">Start Call</button>
6969
<button id="hangup-call-button" type="button" disabled="true">Hang up Call</button>
@@ -118,8 +118,8 @@ let localVideoStream;
118118
let localVideoStreamRenderer;
119119
// UI widgets
120120
let userAccessToken = document.getElementById('user-access-token');
121-
let callQueueId = document.getElementById('call-queue-id');
122-
let initializeCallAgentButton = document.getElementById('initialize-call-agent');
121+
let callQueueId = document.getElementById('application-object-id');
122+
let initializeCallAgentButton = document.getElementById('initialize-teams-call-agent');
123123
let startCallButton = document.getElementById('start-call-button');
124124
let hangUpCallButton = document.getElementById('hangup-call-button');
125125
let acceptCallButton = document.getElementById('accept-call-button');
@@ -169,7 +169,7 @@ startCallButton.onclick = async () => {
169169
try {
170170
const localVideoStream = await createLocalVideoStream();
171171
const videoOptions = localVideoStream ? { localVideoStreams: [localVideoStream] } : undefined;
172-
call = teamsCallAgent.startCall([{ botId: callQueueId.value.trim() }], { videoOptions: videoOptions });
172+
call = callAgent.startCall([{ botId: callQueueId.value.trim(), cloud:"public" }], { videoOptions: videoOptions });
173173
// Subscribe to the call's properties and events.
174174
subscribeToCall(call);
175175
} catch (error) {

0 commit comments

Comments
 (0)