microsoftgraph / microsoftgraph/microsoft-graph-comms-samples
Call 04008880-dd73-4ba7-9d31-dc776a38642d termination details: code=500, subcode=1203002, message=Server Internal Error. DiagCode: 500#1203002.@
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 253
- Forks
- 275
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
Describe the issue
warn: TeamsCallingBot.Services.CallCoordinator[0]
Call 04008880-dd73-4ba7-9d31-dc776a38642d termination details: code=500, subcode=1203002, message=Server Internal Error. DiagCode: 500#1203002.@
warn: TeamsCallingBot.Services.CallCoordinator[0]
Detected app-hosted media negotiation failure for 04008880-dd73-4ba7-9d31-dc776a38642d (code=500, subcode=1203002). Forcing service-hosted media for subsequent calls in this process to avoid repeated immediate drops. Use a directly reachable public media endpoint (non TLS-terminating tunnel) to re-enable app-hosted media reliably.
warn: TeamsCallingBot.Services.CallCoordinator[0]
Call 04008880-dd73-4ba7-9d31-dc776a38642d answered, but failed to initialize Realtime bridge.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.WebSockets.WebSocketHandle.ConnectAsync(Uri uri, HttpMessageInvoker invoker, CancellationToken cancellationToken, ClientWebSocketOptions options)
at System.Net.WebSockets.ClientWebSocket.ConnectAsyncCore(Uri uri, HttpMessageInvoker invoker, CancellationToken cancellationToken)
at TeamsCallingBot.Services.AzureRealtimeClient.ConnectSessionAsync(String sessionId, CancellationToken cancellationToken) in C:\Users\Administrator\Desktop\backup\virtual-assistant-voice\Services\AzureRealtimeClient.cs:line 46
at TeamsCallingBot.Services.CallCoordinator.AnswerWithApplicationHostedMediaAsync(ICall call, CancellationToken cancellationToken) in C:\Users\Administrator\Desktop\backup\virtual-assistant-voice\Services\CallCoordinator.cs:line 191
Graph SDK (please complete the following information):
<ItemGroup>
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.2" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.2.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.2.1" />
<PackageReference Include="Microsoft.Graph.Communications.Calls.Media" Version="1.2.0.10563" />
<PackageReference Include="Microsoft.Graph.Communications.Calls" Version="1.2.0.10563" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
<!-- Override outdated transitive SQLitePCLRaw rid graph to avoid NETSDK1206 on .NET 8 -->
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="2.1.6" />
<!-- Pin for MSBuild path + native payloads used by application-hosted media on Windows -->
<PackageReference Include="Microsoft.Skype.Bots.Media" Version="1.31.0.225-preview" GeneratePathProperty="true" />
</ItemGroup>
Call ID
- 04008880-dd73-4ba7-9d31-dc776a38642d
- 11004c80-4782-446e-a11d-8be724b6430d
sometimes also get another error:
warn: TeamsCallingBot.Services.CallCoordinator[0]
Call 11004c80-4782-446e-a11d-8be724b6430d termination details: code=500, subcode=7106, message=Server Internal Error. DiagCode: 3002#7106.@
warn: TeamsCallingBot.Services.CallCoordinator[0]
Detected app-hosted media negotiation failure for 11004c80-4782-446e-a11d-8be724b6430d (code=500, subcode=7106). Forcing service-hosted media for subsequent calls in this process to avoid repeated immediate drops. Use a directly reachable public media endpoint (non TLS-terminating tunnel) to re-enable app-hosted media reliably.
All the tls certificate(public) and 8445 port, and udp port has checked, it's ok. But still get this issue
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the WebSocket connection in Services/AzureRealtimeClient.cs at line 46 and the app-hosted media flow in Services/CallCoordinator.cs at line 191. Reproduce the call with the reported termination codes and review the surrounding logs and endpoint configuration. Done means the cause of the negotiation or realtime bridge failure is identified and the app-hosted call path behaves reliably or documents the required conditions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- audio-video-rtc, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100