Skip to content

Commit c041ef5

Browse files
authored
Update get-started-teams-interop-group-calls.md
1 parent 1b8a923 commit c041ef5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/communication-services/quickstarts/voice-video-calling/get-started-teams-interop-group-calls.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ The text boxes are used to enter the Teams user IDs planning to call and add in
5858
Hang Up
5959
</button>
6060
</div>
61-
<script src="./client.js"></script>
61+
<script src="./main.js"></script>
6262
</body>
6363
</html>
6464
```
6565

6666
Replace content of client.js file with following snippet.
6767

6868
```javascript
69-
import { CallClient } from "@azure/communication-calling";
70-
import { Features } from "@azure/communication-calling";
71-
import { AzureCommunicationTokenCredential } from '@azure/communication-common';
69+
const { CallClient, Features } = require('@azure/communication-calling');
70+
const { AzureCommunicationTokenCredential } = require('@azure/communication-common');
71+
const { AzureLogger, setLogLevel } = require("@azure/logger");
7272

7373
let call;
7474
let callAgent;
@@ -89,7 +89,7 @@ init();
8989
hangUpButton.addEventListener("click", async () => {
9090
await call.hangUp();
9191
hangUpButton.disabled = true;
92-
teamsMeetingJoinButton.disabled = false;
92+
placeInteropGroupCallButton.disabled = false;
9393
callStateElement.innerText = '-';
9494
});
9595

@@ -102,7 +102,7 @@ placeInteropGroupCallButton.addEventListener("click", () => {
102102
const participants = teamsIdsInput.value.split(',').map(id => {
103103
const participantId = id.replace(' ', '');
104104
return {
105-
microsoftTeamsUserId: `8:orgid:${participantId}`
105+
microsoftTeamsUserId: `${participantId}`
106106
};
107107
})
108108

@@ -145,7 +145,7 @@ In results get the "id" field.
145145
Run the following command to bundle your application host on a local webserver:
146146

147147
```console
148-
npx webpack-dev-server --entry ./client.js --output bundle.js --debug --devtool inline-source-map
148+
npx webpack serve --config webpack.config.js
149149
```
150150

151151
Open your browser and navigate to http://localhost:8080/. You should see the following screen:

0 commit comments

Comments
 (0)