> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# Connect

The `<Connect>` verb connects an existing call to another resource.

You can use the `<Connect>` verb with the following nouns:

|                                      Noun                                      |         Description         |
| :----------------------------------------------------------------------------: | :-------------------------: |
|          [`<Room>`](/docs/compatibility-api/cxml/reference/voice/room)         |        A video room.        |
|        [`<Stream>`](/docs/compatibility-api/cxml/reference/voice/stream)       |   A bidirectional stream.   |
| [`<VirtualAgent>`](/docs/compatibility-api/cxml/reference/voice/virtual-agent) | A Dialogflow virtual agent. |

## Examples

### A simple connect

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Connect>
    <Room>my-room-name</Room>
  </Connect>
</Response>
```

### Bidirectional media stream

```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Connect>
    <Stream url="wss://your-application.com/audiostream" />
  </Connect>
</Response>
```