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.
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 ringExample code on flutter (note that call has already been created in the backend):
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.