我有使用 AWS connect start_outbound_voice_contact API 拨打号码的代码,如下所示:
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
它工作得很好。但是,当号码没有响应呼叫时,我希望 AWS 连接服务呼叫我指定的另一个号码。如何在 AWS Connect 控制面板中使用 start_outbound_voice_contact API 或其他 AWS 连接功能(例如队列、联系流等)来做到这一点?