> For the complete documentation index, see [llms.txt](https://docs.inova.us/v1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inova.us/v1/twilio-in-browser-call-plugin/states.md).

# States

## States

States are one of the Bubble ways to store temporary data on the client side. Here's the list of states the Twilio Client element exposes.

### Call & device states

| State                      | Description                                                                   | Type   |
| -------------------------- | ----------------------------------------------------------------------------- | ------ |
| Device status              | Twilio voice client status (registering, registered, unregistered, destroyed) | text   |
| Call Id                    | Returns the active call SID                                                   | text   |
| Call Status                | Returns the active (outbound) call status (pending, ringing, open, closed)    | text   |
| Muted                      | Returns whether the active call is muted                                      | yes/no |
| Incoming Call Phone Number | Incoming call phone number                                                    | text   |
| Incoming Call Sid          | Twilio incoming call SID                                                      | text   |
| Incoming Call Status       | Returns the incoming call status (connected, disconnected, closed)            | text   |
| isBusy                     | Returns the device busy status                                                | yes/no |
| Mic access status          | Browser microphone permission (granted, denied, prompt)                       | text   |
| Error                      | Returns any errors related to the Twilio Client                               | text   |

### Audio device states

See [Audio Device Selection](/v1/twilio-in-browser-call-plugin/audio-device-selection.md) for how to use these.

| State                      | Description                                            | Type         |
| -------------------------- | ------------------------------------------------------ | ------------ |
| Input devices              | Available microphones, each as `label - deviceId`      | list of text |
| Output devices             | Available speakers, each as `label - deviceId`         | list of text |
| Output Device Supported    | Whether the browser supports choosing an output device | yes/no       |
| Output Device Applied      | Whether the requested output device was applied        | yes/no       |
| Output Device Error        | Error raised while applying an output device           | text         |
| Requested Input Device Id  | Input id the element tried to apply                    | text         |
| Applied Input Device Id    | Input id currently in effect                           | text         |
| Requested Output Device Id | Output id the element tried to apply                   | text         |
| Applied Output Device Id   | Output id currently in effect                          | text         |
| Device Selection Debug     | Trace of the last device-selection attempt             | text         |
