philnash / react-twilio-phone

A Twilio Client based web phone, built with React
MIT License
49 stars 38 forks source link

States #22

Closed f-zeee closed 2 years ago

f-zeee commented 2 years ago

Hey, can you tell me what is the actual function of each of the states?

philnash commented 2 years ago

The states are:

const states = {
  CONNECTING: "Connecting",
  READY: "Ready",
  INCOMING: "Incoming",
  ON_CALL: "On call",
  OFFLINE: "Offline"
};

Connecting is as the device is preparing. Ready means it is ready to make or receive a call. Incoming means there is an incoming call. On call means that there is a current live call that has been answered. Offline means the device has disconnected.

Does that help?

f-zeee commented 2 years ago

Yes thank you!