create_sip_media_application_call
¶
create_sip_media_application_call(
from_phone_number: E164PhoneNumber,
to_phone_number: E164PhoneNumber,
sip_media_application_id: NonEmptyString,
*,
config_overrides: Optional[ChimeSDKVoiceClientConfig] = None,
sip_headers: Optional[SipHeadersMap] = None,
arguments_map: Optional[SMACreateCallArgumentsMap] = None,
) -> CreateSipMediaApplicationCallResponse
Creates an outbound call to a phone number from the phone number specified in the request, and it invokes the endpoint of the specified sipMediaApplicationId.
Parameters:
-
from_phone_number(E164PhoneNumber) –The phone number that a user calls from. This is a phone number in your Amazon Chime SDK phone number inventory.
-
to_phone_number(E164PhoneNumber) –The phone number that the service should call.
-
sip_media_application_id(NonEmptyString) –The ID of the SIP media application.
-
sip_headers(Optional[SipHeadersMap], default:None) –The SIP headers added to an outbound call leg.
-
arguments_map(Optional[SMACreateCallArgumentsMap], default:None) –Context passed to a CreateSipMediaApplication API call. For example, you could pass key-value pairs such as:
"FirstName": "John", "LastName": "Doe"
Raises:
-
AccessDeniedException–You don't have the permissions needed to run this action.
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ResourceLimitExceededException–The request exceeds the resource limit.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The number of customer requests exceeds the request rate limit.
-
UnauthorizedClientException–The client isn't authorized to request a resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_voice/_services/chime_sdk_voice.py
966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 | |