Skip to content

Commit c52808d

Browse files
authored
Merge pull request #178442 from juancamilor/patch-2
Fix random issue dropping calls
2 parents 695cb37 + d08f77d commit c52808d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,13 @@ namespace CallingQuickstart
6464
string user_token_ = "<User_Access_Token>";
6565

6666
Call call_;
67+
CallClient call_client;
68+
CallAgent call_agent;
6769

6870
public MainPage()
6971
{
7072
this.InitializeComponent();
73+
call_client = new CallClient();
7174
}
7275

7376
private async void JoinButton_ClickAsync(object sender, RoutedEventArgs e)
@@ -77,21 +80,13 @@ namespace CallingQuickstart
7780
return;
7881
}
7982

80-
//
81-
// Create CallClient
82-
//
83-
CallClient call_client = new CallClient();
84-
8583
//
8684
// Create CallAgent
8785
//
8886
CommunicationTokenCredential token_credential;
89-
CallAgent call_agent;
90-
9187
try
9288
{
9389
token_credential = new CommunicationTokenCredential(user_token_);
94-
9590
CallAgentOptions call_agent_options = new CallAgentOptions();
9691
call_agent = await call_client.CreateCallAgent(token_credential, call_agent_options);
9792
}

0 commit comments

Comments
 (0)