in CBHelper-dial/lambda_function.py [0:0]
def place_call(phoneNumber, contactFlow,connectID,queue):
connect_client = boto3.client('connect')
try:
response = connect_client.start_outbound_voice_contact(
DestinationPhoneNumber=phoneNumber,
ContactFlowId=contactFlow,
InstanceId=connectID,
QueueId=queue,
)
except Exception as e:
print(e)
print("phone" + str(phoneNumber))
response = None
return response