Skip to content

Ringing does not work if call created on server side #1193

@KestasVenslauskas

Description

@KestasVenslauskas

Ringing does not work if a call is created on a server side using REST.

Call contains all members. But if another user tries to call ring() it says no users to ring

Example code on flutter (note that call has already been created in the backend):

  final call = StreamVideo.instance.makeCall(
        callType: StreamCallType.custom('appointment'),
        id: callId,
      );

      await call.getOrCreate(
        memberIds: [_sessionRepository.userId!, patientId],
        ringing: true,
        video: true,
      );

      final members = await call.queryMembers();
      final memberIds = members.getDataOrNull()?.members.keys.toList() ?? [];
      logger.w('call $memberIds');

      await call
          .ring(userIds: memberIds, video: true)
          .then((list) => logger.d('Ringing result: $list'))
          .catchError((error, stackTrace) {
            logger.e('Error ringing call: $error');
          });

Ringing result: Result.Failure{error: VideoErrorWithCause{message: {"code":4,"message":"RingCall failed with error: \"no users to ring\"","StatusCode":400,"duration":"0.00ms","more_info":"https://getstream.io/chat/docs/api_errors_response","details":[]}, exception: ApiException 400: {"code":4,"message":"RingCall failed with error: \"no users to ring\"","StatusCode":400,"duration":"0.00ms","more_info":"https://getstream.io/chat/docs/api_errors_response","details":[]}, stackTrace: #0 ProductvideoApi.ringCall (package:stream_video/open_api/video/coordinator/api/productvideo_api.dart:2262:7)

If I would change the callId with different one that does not already exist the ringing would work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions