title: How to get Call Status(Connected, Busy, No answered & Ringing) from Amazon Connect Streams API?
body: <p>I am using Amazon Connect Streams API [https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md] and we have different call status in Amazon Connect <code>e.g. call connected, call missed/no answered!</code></p>
  <p>how can i get call status of the following call dispositions (<code>busy, connected, in progress, ringing, no answered</code>) from within Streams API?</p>
  <p>I am using</p>
  <pre><code>function subscribeToContactEvents(contact) {
  console.log(&quot;Subscribing to events for contact&quot;);
  contact.onMissed(handleOnMissed);
  contact.onConnected(handleOnConnected);
  contact.onEnded(handleOnEnded);
  }
  
  function handleOnMissed(contact){
      console.log(&quot;[contact.onMissed] Call is Missed. Contact status is &quot; + contact.getStatus().type);
  }
  
  function handleOnConnected(contact) {
      console.log(&quot;[contact.onConnected] Call is ACW. Contact status is &quot; + contact.getStatus().type);
  }
  
  function handleOnEnded(contact) {
  console.log(&quot;[contact.onEnded] Call has ended. Contact status is &quot; + contact.getStatus().type);
  }
  </code></pre>