Skip to content

Commit

Permalink
fix(internal-plugin-metrics): webex-386242 Correct report JMF Reports (
Browse files Browse the repository at this point in the history
…#3622)

Co-authored-by: kwasniow <[email protected]>
  • Loading branch information
k-wasniowski and kwasniow authored May 29, 2024
1 parent 6fc6ad1 commit 4c1a732
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,18 @@ export const generateClientErrorCodeForIceFailure = ({
errorCode = MISSING_ROAP_ANSWER_CLIENT_CODE;
}

if (signalingState === 'stable' && iceConnectionState === 'connected') {
if (
signalingState === 'stable' &&
(iceConnectionState === 'connected' || iceConnectionState === 'disconnected')
) {
errorCode = DTLS_HANDSHAKE_FAILED_CLIENT_CODE;
}

if (signalingState !== 'have-local-offer' && iceConnectionState !== 'connected') {
if (
signalingState !== 'have-local-offer' &&
iceConnectionState !== 'connected' &&
iceConnectionState !== 'disconnected'
) {
if (turnServerUsed) {
errorCode = ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,17 +301,23 @@ describe('internal-plugin-metrics', () => {

[
['client.exit.app', {}],
['client.login.end', {
joinTimes: {
otherAppApiReqResp: undefined,
exchangeCITokenJMT: undefined,
}
}],
['client.webexapp.launched', {
joinTimes: {
downloadTime: undefined,
}
}],
[
'client.login.end',
{
joinTimes: {
otherAppApiReqResp: undefined,
exchangeCITokenJMT: undefined,
},
},
],
[
'client.webexapp.launched',
{
joinTimes: {
downloadTime: undefined,
},
},
],
[
'client.interstitial-window.launched',
{
Expand Down Expand Up @@ -609,6 +615,12 @@ describe('internal-plugin-metrics', () => {
turnServerUsed: true,
errorCode: DTLS_HANDSHAKE_FAILED_CLIENT_CODE,
},
{
signalingState: 'stable',
iceConnectionState: 'disconnected',
turnServerUsed: true,
errorCode: DTLS_HANDSHAKE_FAILED_CLIENT_CODE,
},
{
signalingState: 'stable',
iceConnectionState: 'failed',
Expand Down

0 comments on commit 4c1a732

Please sign in to comment.