Skip to content

Commit 5e5523c

Browse files
authored
Update voice-video-calling-cte-windows.md
1 parent 7cf36ab commit 5e5523c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

articles/communication-services/quickstarts/voice-video-calling/includes/custom-teams-endpoint/voice-video-calling-cte-windows.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -301,29 +301,29 @@ Once a `StartTeamsCallOptions` object is obtained, `TeamsCallAgent` can be used
301301
this.teamsCallAgent.IncomingCallReceived += OnIncomingCallAsync;
302302
```
303303

304-
## Join a Teams Call
305-
306-
User can also join an existing call by passing a link
307-
308-
```c#
309-
TeamsMeetingLinkLocator link = new TeamsMeetingLinkLocator("meetingLink");
310-
JoinTeamsCallOptions options = new JoinTeamsCallOptions();
311-
TeamsCall call = await teamsCallAgent.JoinAsync(link, options);
312-
```
313-
314304
Application has an opportunity to configure how the incoming call should be accepted, such as video and audio stream kinds.
315305
```C#
316306
private async void OnIncomingCallAsync(object sender, TeamsIncomingCallReceivedEventArgs args)
317307
{
318308
var teamsIncomingCall = args.IncomingCall;
319309

320-
var acceptCallOptions = new AcceptCallOptions() { };
310+
var acceptteamsCallOptions = new AcceptTeamsCallOptions() { };
321311

322-
teamsCall = await teamsIncomingCall.AcceptAsync(acceptCallOptions);
312+
teamsCall = await teamsIncomingCall.AcceptAsync(acceptteamsCallOptions);
323313
teamsCall.StateChanged += OnStateChangedAsync;
324314
}
325315
```
326316

317+
## Join a Teams Call
318+
319+
User can also join an existing call by passing a link
320+
321+
```c#
322+
TeamsMeetingLinkLocator link = new TeamsMeetingLinkLocator("meetingLink");
323+
JoinTeamsCallOptions options = new JoinTeamsCallOptions();
324+
TeamsCall call = await teamsCallAgent.JoinAsync(link, options);
325+
```
326+
327327
### Monitor and respond to call state change event
328328

329329
`StateChanged` event on `TeamsCommunicationCall` object is fired when an in progress call transactions from one state to another. Application is offered the opportunities to reflect the state changes on UI or insert business logics.

0 commit comments

Comments
 (0)