PhoneCall

Represents information about a phone call.

Constructor 

new PhoneCall(param)

Objects Where Used 

Parameters 

FieldTypeDescriptionRequired
paramobjectParameters associated with a phone call.
param.agentStatusstringOptional. Status of the rep on the call.
param.agentARNstringOptional. Amazon Resource Name (ARN) identifying the rep in the telephony system.No
param.callAttributesPhoneCallAttributesAttributes associated with the call. The values in this object are immutable and can’t be updated by the partner. See example below.
param.callIdstringThe unique identifier for the phone call. This ID is used to track and manage the call within the system.Yes
param.callInfoCallInfoOptional. Call info using key value pairs in a JSON object.
param.callTypestringOptional. The type of call. One of these values: Inbound, Outbound, Callback, AddParticipant, Consult.
param.closeCallOnErrorbooleanOptional. Whether the call was closed for an error.
param.connectionIdstringOptional. An identifier for a call leg. By default, the connectionId value is the same as callId. Telephony providers other than Amazon Connect don’t need to set the connectionId.
param.contactContactOptional. The call target or contact.
param.phoneNumberstringOptional. The phone number associated with this call; usually an external number.
param.reasonstringOptional. Reason for phone call.
param.statestringOptional. The state of the call. For example: ringing, connected, declined, failed.

Example: param.callAttributes 

1callAttributes: {
2    voiceCallId: string,
3    participantType: string,
4    dialerType: string,
5    parentId: string,
6    hasSupervistorBargedIn: boolean,
7    isAutoMergeOn: boolean,
8    isConsultCall: boolean,
9    isOnHold: boolean
10}

Newer Version Available

This content describes an older version of this product. View Latest

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!