Reputation: 191
I have code to call a number using AWS connect start_outbound_voice_contact API as below:
import boto3
boto3.setup_default_session(profile_name='infra')
client = boto3.client('connect')
response = client.start_outbound_voice_contact(
DestinationPhoneNumber='XXX',
ContactFlowId='YYYYY',
InstanceId='ZZZZZ',
QueueId='LLLLL',
Attributes={
'Attr1':'KKKKK'
}
)
print response
It is working very well. However, when the number does not respond to the call, I want AWS connect service to call another number that I specified. How can I do that using start_outbound_voice_contact API or other AWS connect features such queues, contact flows etc. in the AWS connect dashboard?
Upvotes: 1
Views: 292
Reputation: 935
There is no way to make a single outbound API call that will use multiple destinations numbers. You would have to control the outbound destinations with the dialing application that is making the API call to Connect, ending the original outbound contact request when you find it unresponsive and then initiating another start outbound contact call with the secondary number.
Upvotes: 1