Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(call): check if 'max_call_duration' is enabled when parsing 'call_ended' message #14025

Closed
wants to merge 1 commit into from

Conversation

Antreesy
Copy link
Contributor

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

image

🛠️ API Checklist

🚧 Tasks

  • Check code

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

@Antreesy Antreesy added 3. to review bug feature: api 🛠️ OCS API for conversations, chats and participants feature: call 📹 Voice and video calls labels Dec 19, 2024
@Antreesy Antreesy added this to the 🖤 Next Major (31) milestone Dec 19, 2024
@Antreesy Antreesy self-assigned this Dec 19, 2024
@Antreesy
Copy link
Contributor Author

/backport to stable30

@@ -1108,6 +1110,8 @@ protected function parseMissedCall(Room $room, array $parameters, ?string $curre

protected function parseCall(Room $room, string $message, array $parameters, array $params): array {
$actorIsSystem = $params['actor']['type'] === 'guest' && $params['actor']['id'] === 'guest/' . Attendee::ACTOR_ID_SYSTEM;
$maxCallDurationEnabled = $this->appConfig->getAppValueInt('max_call_duration') > 0;
Copy link
Contributor Author

@Antreesy Antreesy Dec 19, 2024

Choose a reason for hiding this comment

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

Should be compared to actual call duration instead of 0

@nickvergessen
Copy link
Member

Will send a patch soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug feature: api 🛠️ OCS API for conversations, chats and participants feature: call 📹 Voice and video calls
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically ended calls with no participants shows incorrect system message
2 participants