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

Calls doesn't work #1313

Open
galizhan opened this issue Sep 4, 2024 · 4 comments
Open

Calls doesn't work #1313

galizhan opened this issue Sep 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@galizhan
Copy link

galizhan commented Sep 4, 2024

Bug Description

Hi there is problem with outcomming calls, It just hanging up after 1 second.

Steps to Reproduce

  1. Open Chat
  2. Call to any contact

Expected Behavior

it should call

App Version

1.22

Additional Platform Information

Iphone 11 and Android One Plus

Additional Context

No response

@galizhan galizhan added the bug Something isn't working label Sep 4, 2024
@cturn-dev
Copy link

Same issue here

@cturn-dev
Copy link

cturn-dev commented Sep 16, 2024

It seems that the userId might be missing in the inviteToCall function call, potentially causing the system to call the user themselves. As a result, the user appears as busy, and the call gets disconnected. I suggest the following workaround to address this issue, but I would appreciate it if the developers could take a closer look at the root cause of the problem.

--- chat.dart~	2024-09-16 17:30:43.148395758 +0200
+++ chat.dart	2024-09-16 17:34:05.626264195 +0200
@@ -1299,7 +1299,7 @@
 
     final voipPlugin = Matrix.of(context).voipPlugin;
     try {
-      await voipPlugin!.voip.inviteToCall(room, callType);
+      await voipPlugin!.voip.inviteToCall(room, callType, userId: room.directChatMatrixID);
     } catch (e) {
       ScaffoldMessenger.of(context).showSnackBar(
         SnackBar(content: Text(e.toLocalizedString(context))),

@vanyasem
Copy link

vanyasem commented Nov 11, 2024

The bug was introduced in 4095560 as part of #1081 when migrating to matrix-dart-sdk 0.28+ voip implementation

@vanyasem
Copy link

vanyasem commented Nov 11, 2024

Apparently calls are due to a complete rewrite in #855, but the PR has been abandoned since February 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants