PhoneCall

Represents information about a phone call.

new PhoneCall(param)

FieldTypeDescription
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.
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.callInfoCallInfoOptional. Call info using key value pairs in a JSON object. See parameter description for CallInfo.
param.callTypestringOptional. The type of call. Possible values: Inbound, Outbound, Callback, AddParticipant, Consult.
param.closeCallOnErrorbooleanOptional. Whether the call was closed for an error.
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.