Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
1.98k stars 1.15k forks source link

[communication-calling] User Facing Diagnostics not triggering any network events. #29884

Open rsanteri opened 1 month ago

rsanteri commented 1 month ago

Describe the bug No network events are triggered from UserFacingDiagnostics API in Room calls.

I tried changing network quality, going offline and reconnecting.

To Reproduce Steps to reproduce the behavior:

  1. Join to room call with const call = this.callAgent.join({ roomId });
  2. Subscribe to UserFacingDiagnostics
    const userFacingDiagnostics = call.feature(Features.UserFacingDiagnostics);
    userFacingDiagnostics.network.on('diagnosticChanged', (changeEvent) => console.log(changeEvent));
  3. Change your network conditions (tried various things like disconnecting from network, walking far a away from wifi, controlling network with programs)

Expected behavior Expected network related events to trigger. I never got any network events from userFacingDiagnostics.

Additional context Also tried logging network diagnostics with setInterval(() => { console.log(userFacingDiagnostics.network.getLatest();) }, 2000) but this would always log empty object.

Only tested with room calls.

akania commented 2 weeks ago

hi @rsanteri - can you please provide ACS Call ID ( call.id property ) so we can debug You should expect to receive at least noNetwork UFD - https://learn.microsoft.com/en-us/azure/communication-services/resources/troubleshooting/voice-video-calling/references/ufd/no-network

networkRecv/SendQuality are driven by jitter/packet loss

please post call id so that we can investigate.

github-actions[bot] commented 2 weeks ago

Hi @rsanteri. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] commented 1 week ago

Hi @rsanteri, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!