onCallReject method
Implementation
Future<void> onCallReject(
String roomId, String senderId, Map<String, dynamic> content) async {
final String callId = content['call_id'];
Logs().d('Reject received for call ID $callId');
final call = calls[callId];
if (call != null) {
if (call.room.id != roomId) {
Logs().w(
'Ignoring call reject for room $roomId claiming to be for call in room ${call.room.id}');
return;
}
await call.onRejectReceived(content['reason']);
} else {
Logs().v('[VOIP] onCallReject: Session [$callId] not found!');
}
}