updateSipMediaApplicationCall method
Invokes the AWS Lambda function associated with the SIP media application and transaction ID in an update request. The Lambda function can then return a new set of actions.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter arguments :
Arguments made available to the Lambda function as part of the
CALL_UPDATE_REQUESTED event. Can contain 0-20 key-value
pairs.
Parameter sipMediaApplicationId :
The ID of the SIP media application handling the call.
Parameter transactionId :
The ID of the call transaction.
Implementation
Future<UpdateSipMediaApplicationCallResponse> updateSipMediaApplicationCall({
required Map<String, String> arguments,
required String sipMediaApplicationId,
required String transactionId,
}) async {
final $payload = <String, dynamic>{
'Arguments': arguments,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/sip-media-applications/${Uri.encodeComponent(sipMediaApplicationId)}/calls/${Uri.encodeComponent(transactionId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateSipMediaApplicationCallResponse.fromJson(response);
}