Skip to content

feat(media-call): save sip metadata to the media-call#40500

Open
pierre-lehnen-rc wants to merge 5 commits into
developfrom
feat/sip-metadata
Open

feat(media-call): save sip metadata to the media-call#40500
pierre-lehnen-rc wants to merge 5 commits into
developfrom
feat/sip-metadata

Conversation

@pierre-lehnen-rc

@pierre-lehnen-rc pierre-lehnen-rc commented May 12, 2026

Copy link
Copy Markdown
Contributor

Proposed changes (including videos or screenshots)

Issue(s)

DMV-13

Steps to test or reproduce

Further comments

#40863

Summary by CodeRabbit

  • New Features

    • Added media-calls.info API endpoint to fetch detailed call information (status, participants); enforces caller ownership and returns not-found when inaccessible.
    • Call records now optionally store SIP call identifiers so SIP-based calls can be tracked and correlated via the API.
  • Tests

    • Added end-to-end tests for media-calls.info covering internal/external calls, SIP identifier presence, ownership checks, and not-found cases.

@dionisio-bot

dionisio-bot Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot

changeset-bot Bot commented May 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 243bdbc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@rocket.chat/media-calls Minor
@rocket.chat/model-typings Minor
@rocket.chat/core-typings Minor
@rocket.chat/models Minor
@rocket.chat/meteor Minor
@rocket.chat/rest-typings Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Threads an optional sipCallId from SIP providers through CallDirector into persisted IMediaCall documents, exposes sipCallId in test fixtures, adds an authenticated GET /media-calls.info endpoint that returns a call when the requester is a participant, and adds end-to-end tests and a changeset.

Changes

SIP call identifier threading and media-calls.info endpoint

Layer / File(s) Summary
Type contracts for sipCallId
packages/core-typings/src/mediaCalls/IMediaCall.ts
IMediaCall interface gains an optional sipCallId?: string field.
Model API and persistence layer
packages/model-typings/src/models/IMediaCallsModel.ts, packages/models/src/models/MediaCalls.ts
acceptCallById signature accepts optional sipCallId and implementation conditionally persists sipCallId in the MongoDB $set update.
Call director and SIP integration
ee/packages/media-calls/src/server/CallDirector.ts, ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts, ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
CreateCallParams and MediaCallDirector.acceptCall accept sipCallId; IncomingSipCall.processInvite passes Call-ID header as sipCallId to createCall; OutgoingSipCall passes dialog callId to acceptCall; createCall conditionally writes sipCallId onto persisted calls.
Test fixtures with sipCallId
apps/meteor/server/startup/callHistoryTestData.ts
Adds sipCallId: 'sipCallId3' and sipCallId: 'sipCallId4' to callId3 and callId4 fixtures.
media-calls.info REST endpoint
apps/meteor/app/api/server/v1/media-calls.ts
Adds authenticated GET /media-calls.info with AJV query validation for callId; returns API.v1.success({ call }) if caller is in call.uids, otherwise API.v1.notFound().
End-to-end tests for media-calls.info
apps/meteor/tests/end-to-end/api/media-calls.ts
Adds tests validating successful responses (including sipCallId) for internal and external calls and negative tests for nonexistent and unauthorized access.
Changeset note
.changeset/real-teeth-clean.md
Updates package version bumps and notes endpoint addition for SIP metadata.
sequenceDiagram
  participant IncomingSipCall
  participant CallDirector
  participant OutgoingSipCall
  participant MediaCalls
  IncomingSipCall->>CallDirector: createCall(metadata.sipCallId = Call-ID header)
  CallDirector->>MediaCalls: persist IMediaCall (includes sipCallId)
  OutgoingSipCall->>CallDirector: acceptCall({ sipCallId: dialog.callId, ... })
  CallDirector->>MediaCalls: acceptCallById(callId, { calleeContractId, supportedFeatures, sipCallId })
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

type: feature

Suggested reviewers

  • KevLehman
  • ggazzo
  • ricardogarim
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat(media-call): save sip metadata to the media-call' directly and clearly describes the main change across all modified files, which involves adding sipCallId field storage throughout the media-call system.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • DMV-13: Request failed with status code 401

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented May 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.96%. Comparing base (3a72f99) to head (243bdbc).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #40500   +/-   ##
========================================
  Coverage    69.96%   69.96%           
========================================
  Files         3353     3353           
  Lines       128820   128820           
  Branches     22294    22342   +48     
========================================
  Hits         90132    90132           
- Misses       35397    35399    +2     
+ Partials      3291     3289    -2     
Flag Coverage Δ
unit 69.88% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{}

@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review May 13, 2026 16:10
@pierre-lehnen-rc pierre-lehnen-rc requested review from a team as code owners May 13, 2026 16:10
@coderabbitai coderabbitai Bot added the type: feature Pull requests that introduces new feature label May 13, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/core-typings/src/mediaCalls/IMediaCall.ts`:
- Around line 72-76: The IMediaCall interface currently requires metadata which
breaks compatibility with existing media_calls that may lack it; update the
interface so metadata is optional (e.g., change the property declaration for
metadata on IMediaCall to be optional) and ensure any code that dereferences
call.metadata (call.metadata.sipCallId, etc.) guards for undefined or uses a
safe default; refer to the IMediaCall type and any consumers that access
call.metadata when making this change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1f0a4559-489f-4080-84cb-1879d6751802

📥 Commits

Reviewing files that changed from the base of the PR and between b6b04aa and f4d303a.

📒 Files selected for processing (7)
  • apps/meteor/server/startup/callHistoryTestData.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • packages/models/src/models/MediaCalls.ts
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (3/4)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (4/4)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (5/5)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (4/5)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (3/5)
  • GitHub Check: 🔨 Test API Livechat (CE) / MongoDB 8.0 (1/1)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (2/4)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (2/5)
  • GitHub Check: 🔨 Test UI (EE) / MongoDB 8.0 coverage (1/5)
  • GitHub Check: 🔨 Test Federation Matrix
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (1/4)
  • GitHub Check: 🔨 Test API (CE) / MongoDB 8.0 (1/1)
  • GitHub Check: 🔨 Test API Livechat (EE) / MongoDB 8.0 coverage (1/1)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/models/src/models/MediaCalls.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
🧠 Learnings (3)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/models/src/models/MediaCalls.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/models/src/models/MediaCalls.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/models/src/models/MediaCalls.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
🔇 Additional comments (6)
packages/model-typings/src/models/IMediaCallsModel.ts (1)

25-29: LGTM!

packages/models/src/models/MediaCalls.ts (1)

92-101: LGTM!

Also applies to: 114-114

ee/packages/media-calls/src/server/CallDirector.ts (1)

27-27: LGTM!

Also applies to: 65-70, 242-242

ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts (1)

102-114: LGTM!

ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts (1)

272-276: LGTM!

apps/meteor/server/startup/callHistoryTestData.ts (1)

137-137: LGTM!

Also applies to: 171-171, 205-205, 239-239

Comment thread packages/core-typings/src/mediaCalls/IMediaCall.ts Outdated
@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as draft May 13, 2026 18:42
@pierre-lehnen-rc pierre-lehnen-rc marked this pull request as ready for review May 14, 2026 17:28
@pierre-lehnen-rc pierre-lehnen-rc requested a review from a team as a code owner May 14, 2026 17:28

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
apps/meteor/app/api/server/v1/media-calls.ts (1)

252-254: ⚡ Quick win

Add 401/403 response schemas to media-calls.info for contract parity.

This authenticated route currently omits 401 and 403 validators even though other authenticated media-calls routes in this file include them.

Proposed diff
 		response: {
 				call: IMediaCall;
 			}>({
@@
 			}),
+			401: validateUnauthorizedErrorResponse,
+			403: validateForbiddenErrorResponse,
 		},
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/meteor/app/api/server/v1/media-calls.ts` around lines 252 - 254, The
media-calls.info route response object is missing 401 and 403 validators; update
the responses map in media-calls.info to add entries for 401 and 403 using the
same validator functions used elsewhere (e.g., validateUnauthorizedResponse and
validateForbiddenResponse) alongside the existing 400 and 404 entries so
contract parity is maintained.
packages/apps/tests/test-data/utilities.ts (1)

508-542: ⚡ Quick win

Include sipCallId in the default media-call fixture.

This helper is likely reused by accessor tests in this SIP-metadata PR, and omitting sipCallId makes the default fixture miss the new field unless every test overrides it manually.

Proposed change
 public static getMediaCall(): IMediaCall {
 	return {
 		_id: 'first-call',
 		_updatedAt: new Date(),
 		service: 'webrtc',
 		kind: 'direct',
 		state: 'hangup',
+		sipCallId: 'sip-call-id-123',
 		createdBy: {
 			type: 'user',
 			id: 'johnId',
 		},
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/apps/tests/test-data/utilities.ts` around lines 508 - 542, The
default media-call fixture returned by getMediaCall() is missing the new
sipCallId field; update the IMediaCall object in getMediaCall to include a
sipCallId property (e.g., a string like 'sip-first-call' or similar) so tests
that rely on the new SIP metadata field get a sensible default without needing
to override it everywhere.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/apps/src/server/accessors/MediaCallRead.ts`:
- Around line 12-13: Change the method signature of MediaCallRead.getById to
match the interface IMediaCallRead.getById by returning Promise<IMediaCall |
undefined> and propagate nullable results from mediaCallBridge.doGetById (which
may return null) as undefined; update the return type in the getById declaration
and ensure any direct return of mediaCallBridge.doGetById(id, this.appId) is
typed/converted to IMediaCall | undefined so the implementation and interface
signatures align.

---

Nitpick comments:
In `@apps/meteor/app/api/server/v1/media-calls.ts`:
- Around line 252-254: The media-calls.info route response object is missing 401
and 403 validators; update the responses map in media-calls.info to add entries
for 401 and 403 using the same validator functions used elsewhere (e.g.,
validateUnauthorizedResponse and validateForbiddenResponse) alongside the
existing 400 and 404 entries so contract parity is maintained.

In `@packages/apps/tests/test-data/utilities.ts`:
- Around line 508-542: The default media-call fixture returned by getMediaCall()
is missing the new sipCallId field; update the IMediaCall object in getMediaCall
to include a sipCallId property (e.g., a string like 'sip-first-call' or
similar) so tests that rely on the new SIP metadata field get a sensible default
without needing to override it everywhere.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: effc24f8-1bfc-464c-9fc1-c5781bf1e777

📥 Commits

Reviewing files that changed from the base of the PR and between f4d303a and d2a38c3.

📒 Files selected for processing (31)
  • apps/meteor/app/api/server/v1/media-calls.ts
  • apps/meteor/app/apps/server/bridges/bridges.js
  • apps/meteor/app/apps/server/bridges/mediaCalls.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • apps/meteor/tests/end-to-end/api/media-calls.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
  • packages/apps-engine/src/definition/accessors/IMediaCallRead.ts
  • packages/apps-engine/src/definition/accessors/IRead.ts
  • packages/apps-engine/src/definition/accessors/index.ts
  • packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts
  • packages/apps-engine/src/definition/mediaCalls/index.ts
  • packages/apps/deno-runtime/lib/accessors/mod.ts
  • packages/apps/src/AppsEngine.ts
  • packages/apps/src/server/accessors/MediaCallRead.ts
  • packages/apps/src/server/accessors/Reader.ts
  • packages/apps/src/server/accessors/index.ts
  • packages/apps/src/server/bridges/AppBridges.ts
  • packages/apps/src/server/bridges/MediaCallBridge.ts
  • packages/apps/src/server/bridges/index.ts
  • packages/apps/src/server/managers/AppAccessorManager.ts
  • packages/apps/src/server/permissions/AppPermissions.ts
  • packages/apps/tests/server/accessors/MediaCallRead.test.ts
  • packages/apps/tests/server/accessors/Reader.test.ts
  • packages/apps/tests/test-data/bridges/appBridges.ts
  • packages/apps/tests/test-data/bridges/mediaCallBridge.ts
  • packages/apps/tests/test-data/utilities.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • packages/models/src/models/MediaCalls.ts
✅ Files skipped from review due to trivial changes (3)
  • packages/apps-engine/src/definition/accessors/index.ts
  • packages/apps/tests/server/accessors/MediaCallRead.test.ts
  • packages/apps-engine/src/definition/mediaCalls/index.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/model-typings/src/models/IMediaCallsModel.ts
  • ee/packages/media-calls/src/sip/providers/OutgoingSipCall.ts
📜 Review details
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • packages/apps/tests/server/accessors/Reader.test.ts
  • packages/apps/src/AppsEngine.ts
  • packages/apps/src/server/bridges/MediaCallBridge.ts
  • packages/apps/src/server/managers/AppAccessorManager.ts
  • apps/meteor/app/api/server/v1/media-calls.ts
  • packages/apps/tests/test-data/utilities.ts
  • packages/apps/src/server/bridges/AppBridges.ts
  • packages/apps/src/server/bridges/index.ts
  • packages/apps/src/server/permissions/AppPermissions.ts
  • packages/apps-engine/src/definition/accessors/IMediaCallRead.ts
  • apps/meteor/tests/end-to-end/api/media-calls.ts
  • packages/models/src/models/MediaCalls.ts
  • packages/apps-engine/src/definition/accessors/IRead.ts
  • packages/apps/tests/test-data/bridges/mediaCallBridge.ts
  • packages/apps/src/server/accessors/index.ts
  • packages/apps/src/server/accessors/MediaCallRead.ts
  • apps/meteor/app/apps/server/bridges/mediaCalls.ts
  • apps/meteor/app/apps/server/bridges/bridges.js
  • packages/apps/deno-runtime/lib/accessors/mod.ts
  • packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts
  • packages/apps/src/server/accessors/Reader.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/apps/tests/test-data/bridges/appBridges.ts
🧠 Learnings (7)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • packages/apps/tests/server/accessors/Reader.test.ts
  • packages/apps/src/AppsEngine.ts
  • packages/apps/src/server/bridges/MediaCallBridge.ts
  • packages/apps/src/server/managers/AppAccessorManager.ts
  • apps/meteor/app/api/server/v1/media-calls.ts
  • packages/apps/tests/test-data/utilities.ts
  • packages/apps/src/server/bridges/AppBridges.ts
  • packages/apps/src/server/bridges/index.ts
  • packages/apps/src/server/permissions/AppPermissions.ts
  • packages/apps-engine/src/definition/accessors/IMediaCallRead.ts
  • apps/meteor/tests/end-to-end/api/media-calls.ts
  • packages/models/src/models/MediaCalls.ts
  • packages/apps-engine/src/definition/accessors/IRead.ts
  • packages/apps/tests/test-data/bridges/mediaCallBridge.ts
  • packages/apps/src/server/accessors/index.ts
  • packages/apps/src/server/accessors/MediaCallRead.ts
  • apps/meteor/app/apps/server/bridges/mediaCalls.ts
  • packages/apps/deno-runtime/lib/accessors/mod.ts
  • packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts
  • packages/apps/src/server/accessors/Reader.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/apps/tests/test-data/bridges/appBridges.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • packages/apps/tests/server/accessors/Reader.test.ts
  • packages/apps/src/AppsEngine.ts
  • packages/apps/src/server/bridges/MediaCallBridge.ts
  • packages/apps/src/server/managers/AppAccessorManager.ts
  • apps/meteor/app/api/server/v1/media-calls.ts
  • packages/apps/tests/test-data/utilities.ts
  • packages/apps/src/server/bridges/AppBridges.ts
  • packages/apps/src/server/bridges/index.ts
  • packages/apps/src/server/permissions/AppPermissions.ts
  • packages/apps-engine/src/definition/accessors/IMediaCallRead.ts
  • apps/meteor/tests/end-to-end/api/media-calls.ts
  • packages/models/src/models/MediaCalls.ts
  • packages/apps-engine/src/definition/accessors/IRead.ts
  • packages/apps/tests/test-data/bridges/mediaCallBridge.ts
  • packages/apps/src/server/accessors/index.ts
  • packages/apps/src/server/accessors/MediaCallRead.ts
  • apps/meteor/app/apps/server/bridges/mediaCalls.ts
  • packages/apps/deno-runtime/lib/accessors/mod.ts
  • packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts
  • packages/apps/src/server/accessors/Reader.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/apps/tests/test-data/bridges/appBridges.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • packages/apps/tests/server/accessors/Reader.test.ts
  • packages/apps/src/AppsEngine.ts
  • packages/apps/src/server/bridges/MediaCallBridge.ts
  • packages/apps/src/server/managers/AppAccessorManager.ts
  • apps/meteor/app/api/server/v1/media-calls.ts
  • packages/apps/tests/test-data/utilities.ts
  • packages/apps/src/server/bridges/AppBridges.ts
  • packages/apps/src/server/bridges/index.ts
  • packages/apps/src/server/permissions/AppPermissions.ts
  • packages/apps-engine/src/definition/accessors/IMediaCallRead.ts
  • apps/meteor/tests/end-to-end/api/media-calls.ts
  • packages/models/src/models/MediaCalls.ts
  • packages/apps-engine/src/definition/accessors/IRead.ts
  • packages/apps/tests/test-data/bridges/mediaCallBridge.ts
  • packages/apps/src/server/accessors/index.ts
  • packages/apps/src/server/accessors/MediaCallRead.ts
  • apps/meteor/app/apps/server/bridges/mediaCalls.ts
  • packages/apps/deno-runtime/lib/accessors/mod.ts
  • packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts
  • packages/apps/src/server/accessors/Reader.ts
  • apps/meteor/server/startup/callHistoryTestData.ts
  • ee/packages/media-calls/src/server/CallDirector.ts
  • ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts
  • packages/core-typings/src/mediaCalls/IMediaCall.ts
  • packages/apps/tests/test-data/bridges/appBridges.ts
📚 Learning: 2026-05-11T21:46:23.471Z
Learnt from: d-gubert
Repo: RocketChat/Rocket.Chat PR: 40463
File: packages/apps/src/lib/SecureFields.ts:17-19
Timestamp: 2026-05-11T21:46:23.471Z
Learning: In Rocket.Chat’s `packages/apps/tsconfig.json`, TypeScript `"strict"` is set to `false`, which disables strict type-checking (including `noImplicitAny`) for `packages/apps`. When reviewing, do not flag TS7053 (and similar strict-mode indexing/type errors) in files under `packages/apps/src/` that are a consequence of this relaxed strictness—e.g., patterns like indexing an `unknown`/`object` via optional chaining such as `object?.[kSecureFields]`.

Applied to files:

  • packages/apps/src/AppsEngine.ts
  • packages/apps/src/server/bridges/MediaCallBridge.ts
  • packages/apps/src/server/managers/AppAccessorManager.ts
  • packages/apps/src/server/bridges/AppBridges.ts
  • packages/apps/src/server/bridges/index.ts
  • packages/apps/src/server/permissions/AppPermissions.ts
  • packages/apps/src/server/accessors/index.ts
  • packages/apps/src/server/accessors/MediaCallRead.ts
  • packages/apps/src/server/accessors/Reader.ts
📚 Learning: 2026-02-23T17:53:06.802Z
Learnt from: ggazzo
Repo: RocketChat/Rocket.Chat PR: 35995
File: apps/meteor/app/api/server/v1/rooms.ts:1107-1112
Timestamp: 2026-02-23T17:53:06.802Z
Learning: During PR reviews that touch endpoint files under apps/meteor/app/api/server/v1, enforce strict scope: if a PR targets a specific endpoint (e.g., rooms.favorite), do not propose changes to unrelated endpoints (e.g., rooms.invite) unless maintainers explicitly request them. Focus feedback on the touched endpoint's behavior, API surface, and related tests; avoid broad cross-endpoint changes in the same PR unless requested.

Applied to files:

  • apps/meteor/app/api/server/v1/media-calls.ts
📚 Learning: 2026-02-24T19:09:01.522Z
Learnt from: ahmed-n-abdeltwab
Repo: RocketChat/Rocket.Chat PR: 38974
File: apps/meteor/app/api/server/v1/im.ts:220-221
Timestamp: 2026-02-24T19:09:01.522Z
Learning: In Rocket.Chat OpenAPI migration PRs for endpoints under apps/meteor/app/api/server/v1, avoid introducing logic changes. Only perform scope-tight changes that preserve behavior; style-only cleanups (e.g., removing inline comments) may be deferred to follow-ups to keep the migration PR focused.

Applied to files:

  • apps/meteor/app/api/server/v1/media-calls.ts
📚 Learning: 2026-05-06T20:47:53.078Z
Learnt from: d-gubert
Repo: RocketChat/Rocket.Chat PR: 40186
File: apps/meteor/app/apps/server/bridges/uiInteraction.ts:2-2
Timestamp: 2026-05-06T20:47:53.078Z
Learning: Deep imports must be used in this repository because Meteor’s bundler does not respect package.json exports subpath mappings. Import using deep paths (e.g., rocket.chat/apps/dist/server/bridges/UiInteractionBridge) instead of relying on exports. Do not suggest or apply changes to exports maps in Meteor-consuming packages (e.g., packages/apps/package.json) as a fix for deep imports. This guideline applies to all TypeScript files under apps/meteor/app/apps/server/bridges.

Applied to files:

  • apps/meteor/app/apps/server/bridges/mediaCalls.ts
🪛 Biome (2.4.15)
apps/meteor/app/apps/server/bridges/bridges.js

[error] 17-17: Illegal use of an import declaration outside of a module

(parse)

🔇 Additional comments (26)
apps/meteor/app/apps/server/bridges/bridges.js (1)

17-17: LGTM!

Also applies to: 65-65, 180-182

apps/meteor/app/apps/server/bridges/mediaCalls.ts (1)

1-16: LGTM!

apps/meteor/app/api/server/v1/media-calls.ts (1)

214-251: LGTM!

Also applies to: 255-276

apps/meteor/tests/end-to-end/api/media-calls.ts (1)

1-115: LGTM!

packages/apps/src/server/permissions/AppPermissions.ts (1)

132-134: LGTM!

packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts (1)

1-41: LGTM!

packages/core-typings/src/mediaCalls/IMediaCall.ts (1)

72-72: LGTM!

packages/apps-engine/src/definition/accessors/IMediaCallRead.ts (1)

1-15: LGTM!

packages/apps-engine/src/definition/accessors/IRead.ts (1)

6-6: LGTM!

Also applies to: 59-59

packages/apps/src/AppsEngine.ts (1)

11-11: LGTM!

packages/models/src/models/MediaCalls.ts (1)

92-95: LGTM!

Also applies to: 108-108

ee/packages/media-calls/src/server/CallDirector.ts (1)

27-27: LGTM!

Also applies to: 65-70, 242-242

ee/packages/media-calls/src/sip/providers/IncomingSipCall.ts (1)

108-108: LGTM!

apps/meteor/server/startup/callHistoryTestData.ts (2)

203-203: LGTM!


237-237: LGTM!

packages/apps/src/server/bridges/MediaCallBridge.ts (1)

1-33: LGTM!

packages/apps/src/server/bridges/AppBridges.ts (1)

15-15: LGTM!

Also applies to: 56-57, 115-117

packages/apps/src/server/bridges/index.ts (1)

17-17: LGTM!

Also applies to: 39-39

packages/apps/src/server/managers/AppAccessorManager.ts (1)

25-25: LGTM!

Also applies to: 196-197, 216-216

packages/apps/src/server/accessors/Reader.ts (1)

6-6: LGTM!

Also applies to: 38-38, 101-103

packages/apps/src/server/accessors/index.ts (1)

12-12: LGTM!

Also applies to: 62-62

packages/apps/deno-runtime/lib/accessors/mod.ts (1)

257-257: LGTM!

packages/apps/tests/server/accessors/Reader.test.ts (1)

9-9: LGTM!

Also applies to: 41-47, 49-66, 78-78

packages/apps/tests/test-data/bridges/appBridges.ts (1)

15-15: LGTM!

Also applies to: 40-40, 115-116, 146-146, 261-263

packages/apps/tests/test-data/bridges/mediaCallBridge.ts (1)

1-9: LGTM!

packages/apps/tests/test-data/utilities.ts (1)

9-9: LGTM!

Comment thread packages/apps/src/server/accessors/MediaCallRead.ts Outdated
@pierre-lehnen-rc pierre-lehnen-rc added this to the POC-VOICE milestone May 26, 2026
Comment thread packages/apps-engine/src/definition/mediaCalls/IMediaCall.ts Outdated
Comment thread packages/apps/src/server/permissions/AppPermissions.ts Outdated
Comment thread packages/model-typings/src/models/IMediaCallsModel.ts
@d-gubert d-gubert changed the title chore: save sip metadata to the media-call feat(media-call): save sip metadata to the media-call Jun 9, 2026
@d-gubert d-gubert force-pushed the feat/sip-metadata branch from d2a38c3 to bbd7101 Compare June 9, 2026 18:59
@coderabbitai coderabbitai Bot added type: feature Pull requests that introduces new feature and removed type: feature Pull requests that introduces new feature labels Jun 9, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 10 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/meteor/app/api/server/v1/media-calls.ts
@d-gubert d-gubert force-pushed the feat/sip-metadata branch from 56e3c52 to a907d37 Compare June 10, 2026 17:51
@coderabbitai coderabbitai Bot removed the type: feature Pull requests that introduces new feature label Jun 10, 2026
@d-gubert d-gubert force-pushed the feat/sip-metadata branch from a907d37 to 13f3355 Compare June 10, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants