Constructor
new PhoneCall(callId, callType, contact, state, callAttributes, phoneNumber, callInfo)
Create a PhoneCall.
Parameters:
| Name | Type | Description |
|---|---|---|
callId |
string | The unique callId. This is a required parameter |
callType |
string | The type of the call, one of the CALL_TYPE values |
contact |
Contact | The Call Target / Contact |
state |
string | The state of the call, i.e. ringing, connected, declined, failed |
callAttributes |
PhoneCallAttributes | Any additional call attributes |
phoneNumber |
string | The phone number associated with this call (usually external number) //TODO: remove in 230 and read it from Contact |
callInfo |
CallInfo |