sendCallReject method
Reject a call
callId
is a unique identifier for the call.
version
is the version of the VoIP specification this message adheres to. This specification is version 1.
party_id
The party ID for call, Can be set to client.deviceId.
Implementation
Future<String?> sendCallReject(Room room, String callId, String party_id,
{String version = voipProtoVersion, String? txid}) async {
final content = {
'call_id': callId,
'party_id': party_id,
if (groupCallId != null) 'conf_id': groupCallId!,
'version': version,
};
return await _sendContent(
room,
isGroupCall ? EventTypes.GroupCallMemberReject : EventTypes.CallReject,
content,
txid: txid,
);
}