rejectedDialOutRequest method
Future<DynamiteResponse<RoomRejectedDialOutRequestResponseApplicationJson, void> >
rejectedDialOutRequest({
- required String callId,
- required String token,
- ContentString<
RoomRejectedDialOutRequestOptions> ? options, - RoomRejectedDialOutRequestApiVersion? apiVersion,
- bool? oCSAPIRequest,
Reset call ID of a dial-out participant when the SIP gateway rejected it.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers.
Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
callIdThe call ID provided by the SIP bridge earlier to uniquely identify the call to terminate.optionsAdditional details to verify the validity of the request.apiVersionDefaults to"v4".tokenoCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Call ID reset
- 400: Call ID mismatch or attendeeId not found in $options
- 401: SIP request invalid
- 404: Participant was not found
- 501: SIP dial-out is not configured
See:
- $rejectedDialOutRequest_Request for the request send by this method.
- $rejectedDialOutRequest_Serializer for a converter to parse the
Responsefrom an executed request.
Implementation
Future<_i1.DynamiteResponse<RoomRejectedDialOutRequestResponseApplicationJson, void>> rejectedDialOutRequest({
required String callId,
required String token,
ContentString<RoomRejectedDialOutRequestOptions>? options,
RoomRejectedDialOutRequestApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final _request = $rejectedDialOutRequest_Request(
callId: callId,
token: token,
options: options,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
final _response = await _rootClient.httpClient.send(_request);
final _serializer = $rejectedDialOutRequest_Serializer();
final _rawResponse =
await _i1.ResponseConverter<RoomRejectedDialOutRequestResponseApplicationJson, void>(_serializer)
.convert(_response);
return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}