Skip to content

Commit

Permalink
fix(plugin-meetings): join fails when paired with a device and Orpheu…
Browse files Browse the repository at this point in the history
…s report-version != 1 (#4100)
  • Loading branch information
marcin-bazyl authored Feb 14, 2025
1 parent 444424d commit 51a0f4a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@webex/plugin-meetings/src/meeting/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ const MeetingUtil = {
meeting.isMultistream,
MeetingUtil.getIpVersion(webex)
);
reachability = await webex.meetings.reachability.getReachabilityReportToAttachToRoap();
if (options.roapMessage) {
// we only need to attach reachability if we are sending a roap message
// sending reachability on its own will cause Locus to reject our join request
reachability = await webex.meetings.reachability.getReachabilityReportToAttachToRoap();
}
} catch (e) {
LoggerProxy.logger.error(
'Meeting:util#joinMeeting --> Error getting reachability or clientMediaPreferences:',
Expand Down
11 changes: 11 additions & 0 deletions packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,17 @@ describe('plugin-meetings', () => {
assert.calledOnce(meeting.meetingRequest.joinMeeting);
});

it('should not attach reachability if there is no roap message', async () => {
await MeetingUtil.joinMeeting(meeting, {});

assert.notCalled(webex.meetings.reachability.getReachabilityReportToAttachToRoap);
assert.calledOnce(meeting.meetingRequest.joinMeeting);

const parameter = meeting.meetingRequest.joinMeeting.getCall(0).args[0];
assert.isUndefined(parameter.reachability);
assert.isUndefined(parameter.roapMessage);
});

it('should handle failed clientMediaPreferences retrieval', async () => {
webex.meetings.reachability.getClientMediaPreferences.rejects(new Error('fake error'));
meeting.isMultistream = true;
Expand Down

0 comments on commit 51a0f4a

Please sign in to comment.