title: How to get status of placed call on Amazon Connect?
body: <p>I'm writing an app which sends an automated call via Amazon Connect. The app needs to retry to another destination number should the first one fail to pick up. The app is being written in Python3 and is to be hosted in Lambda.</p>
  
  <p>This is the resource is used 
  <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connect.html#Connect.Client.get_contact_attributes" rel="nofollow noreferrer">https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connect.html#Connect.Client.get_contact_attributes</a>
  <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetContactAttributes.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/connect/latest/APIReference/API_GetContactAttributes.html</a></p>
  
  <p>The problem is that "send call" is kicked off asynchronously and so it is not immediately clear if the call has succeeded or not. To check the call I invoke "get_contact_attributes" to identify status or any attributes which could point to the status of the placed call.</p>
  
  <pre><code>response=client.start_outbound_voice_contact(
      ContactFlowId='XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
      DestinationPhoneNumber=event["DestinationPhoneNumber"],
      SourcePhoneNumber=event["OriginationPhoneNumber"],
      InstanceId="YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY",
      Attributes={
          "message":f'{event["message"]}'
      }
  )
  contactid=response["ContactId"]
  
  attr = client.get_contact_attributes(
      InstanceId='YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY',
      InitialContactId=contactid
  )
  </code></pre>
  
  <p>I expected it to return "connected_at" or something like it I could use to identify the outcome of the call, however, it only returns "custom" attributes set by myself.</p>