Call
A Call object represents an active call. You can get instances of a Call object from a Voice.Client, by answering or initiating calls.
Examples
Dialing a phone number and playing a message.
Answering an incoming phone call and playing a message.
Properties
device
- device:
any
direction
- direction:
"inbound"|"outbound"
Whether you are making or receiving the call.
from
- from:
string
The phone number that the call is coming from.
headers
Optionalheaders:SipHeader[]
id
Readonlyid:string
Unique id for this voice call
state
- state:
created|ringing|answered|ending|ended
The current state of the call.
to
- to:
string
The phone number you are attempting to call.
type
- type:
"phone"|"sip"
The type of call. Only phone and sip are currently supported.