How to get Call Status(Connected, Busy, No answered & Ringing) from Amazon Connect Streams API?
0
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 e.g. call connected, call missed/no answered!
how can i get call status of the following call dispositions (busy, connected, in progress, ringing, no answered
) from within Streams API?
asked 2 months ago46 views
1 Answers
0
There are two steps to this, first you need to subscribe to agent events then you trigger based on things happening to the agent. So for example...
connect.agent(async function (agent) {
agent.onStateChange(function (agentState){
console.log("Agent State Changed to: " + agentState.newState);
});
});
You can do similar subscribing to contact events.
connect.contact(function (contact) {
activeContact = contact;
contact.onRefresh(function (contact) {/* do stuff */});
contact.onIncoming(function (contact) {/* do stuff */});
contact.onAccepted(function (contact) {/* do stuff */});
contact.onMissed(function (contact) {/* do stuff */});
});
Subscribing to events is covered here... https://github.com/amazon-connect/amazon-connect-streams/blob/master/Documentation.md#event-subscription
answered 2 months ago
Relevant questions
How to get the amazon connect Phone call audio streams(Recordings) from S3 to Local environment
asked 3 months agoDetecting multiple instances of the AWS Softphone across tabs using connect streams API
asked a month agoForward AWS Connect CCP Streams Logs to Cloudwatch
asked 6 days agoError using the AWS Connect Streams API to create an outbound call leg for initiating a transfer: "QuotaExceededException: Cannot dial third party destination: The agent is at maximum capacity."
asked 2 months agoHow to get Call Status(Connected, Busy, No answered & Ringing) from Amazon Connect Streams API?
asked 2 months agoWhy i am getting CustomerEndpoint.Address as "anonymous" in amazon connect?
asked a month agoLogin Window Issue with Amazon Connect Streams
asked 2 months agoChanging the UI of the Amazon Connect Streams CCP
asked 2 months agoSpecify outbound caller ID using Connect Streams?
asked 3 months agoHow long a call waited in queue?
asked 3 years ago
contact.onMissed(); gives error as well as contact.onEnded.
console prints, "[contact.onMissed] Call is Missed. Contact status is error" on function handleMissed(contact) { console.log("[contact.onMissed] Call Missed by agent. Call status is " + contact.getStatus().type); }