Skip to content

Commit 9fe92b5

Browse files
authored
Merge pull request #252885 from sravanthivelidandla/insravan/join-teamsmeeting-id-passcode
Update manage-calls-web.md
2 parents d510cc9 + 0a06b71 commit 9fe92b5

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

articles/communication-services/how-tos/cte-calling-sdk/includes/manage-calls/manage-calls-web.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Join Teams meeting with combination of thread ID, organizer ID, tenant ID, and m
4747
```js
4848
const meetingCall = teamsCallAgent.join({ threadId: '<THREAD_ID>', organizerId: '<ORGANIZER_ID>', tenantId: '<TENANT_ID>', messageId: '<MESSAGE_ID>' });
4949
```
50-
Join Teams meeting with meeting code:
50+
Join Teams meeting with meeting code and passcode:
5151
```js
52-
const meetingCall = teamsCallAgent.join({ meetingId: '<MEETING_CODE>'});
52+
const meetingCall = teamsCallAgent.join({ meetingId: '<MEETING_CODE>', passcode: '<PASSCODE>'});
5353
```
5454

5555
## Receive a Teams incoming call

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ Find the finalized code for this quickstart on [GitHub](https://github.com/Azure
1717

1818
- A working [Communication Services calling web app](../../getting-started-with-calling.md).
1919
- A [Teams deployment](/deployoffice/teams-install).
20+
- The Minimum Version supported for Teams meetingId and passcode join API : 1.17.1
2021

2122
## Add the Teams UI controls
2223

2324
Replace code in index.html with following snippet.
24-
The text box is used to enter the Teams meeting context and the button is used to join the specified meeting:
25+
Join the Teams meeting via Teams Meeting link or Teams MeetingId and Passcode.
26+
The text boxes are used to enter the Teams meeting context and the button is used to join the specified meeting:
2527

2628
```html
2729
<!DOCTYPE html>
@@ -34,6 +36,10 @@ The text box is used to enter the Teams meeting context and the button is used t
3436
<h1>Teams meeting join quickstart</h1>
3537
<input id="teams-link-input" type="text" placeholder="Teams meeting link"
3638
style="margin-bottom:1em; width: 300px;" />
39+
<p><input id="teams-meetingId-input" type="text" placeholder="Teams meetingId"
40+
style="margin-bottom:1em; width: 300px;" /></p>
41+
<p><input id="teams-passcode-input" type="text" placeholder="Teams meeting Passcode"
42+
style="margin-bottom:1em; width: 300px;" /></p>
3743
<p>Call state <span style="font-weight: bold" id="call-state">-</span></p>
3844
<p><span style="font-weight: bold" id="recording-state"></span></p>
3945
<div>
@@ -62,6 +68,8 @@ import { AzureCommunicationTokenCredential } from '@azure/communication-common';
6268
let call;
6369
let callAgent;
6470
const meetingLinkInput = document.getElementById('teams-link-input');
71+
const meetingIdInput = document.getElementById('teams-meetingId-input');
72+
const meetingPasscodeInput = document.getElementById('teams-passcode-input');
6573
const hangUpButton = document.getElementById('hang-up-button');
6674
const teamsMeetingJoinButton = document.getElementById('join-meeting-button');
6775
const callStateElement = document.getElementById('call-state');
@@ -88,6 +96,9 @@ hangUpButton.addEventListener("click", async () => {
8896
teamsMeetingJoinButton.addEventListener("click", () => {
8997
// join with meeting link
9098
call = callAgent.join({meetingLink: meetingLinkInput.value}, {});
99+
(or)
100+
// join with meetingId and passcode
101+
call = callAgent.join({meetingId: meetingIdInput.value, passcode: meetingPasscodeInput.value}, {});
91102

92103
call.on('stateChanged', () => {
93104
callStateElement.innerText = call.state;
Loading

0 commit comments

Comments
 (0)