# \&autorelay

General Option! ([`&push`](/advanced-settings/setup-parameters/push.md), [`&room`](/advanced-settings/setup-parameters/room.md), [`&view`](/advanced-settings/mixer-scene-parameters/view.md), [`&scene`](/advanced-settings/mixer-scene-parameters/scene.md), [`&director`](/advanced-settings/director-parameters/director.md))

## Options

Examples:

* `&autorelay`
* `&autorelay=1`
* `&autorelay=0`

| Value                     | Description                                   |
| ------------------------- | --------------------------------------------- |
| `1`, `true`, `on`, `yes`  | Enable relay escalation during auto-recovery  |
| `0`, `false`, `off`, `no` | Disable relay escalation during auto-recovery |

## Details

* Enables automatic TURN relay escalation as part of peer recovery attempts.
* Useful when direct P2P paths fail intermittently due to strict NAT/firewall/routing issues.
* This does not force relay from the start like [`&relay`](/advanced-settings/turn-and-stun-parameters/and-relay.md); it escalates when recovery logic decides it is needed.
* Requires usable TURN servers. If no TURN servers are configured, this option has no effect.

{% hint style="info" %}
Large rooms may still trigger relay escalation heuristics even without `&autorelay`, but enabling `&autorelay` makes this behavior explicit and predictable.
{% endhint %}

## Related

{% content-ref url="/pages/DZBeQMi8cY8xB2H6rICO" %}
[\&pendingicettl](/advanced-settings/turn-and-stun-parameters/and-pendingicettl.md)
{% endcontent-ref %}

{% content-ref url="/pages/zGrl2B1uV4Vm3OkTolja" %}
[\&autorecover](/advanced-settings/settings-parameters/and-autorecover.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MZX-rFCzgmIUyBitkaa" %}
[\&relay](/advanced-settings/turn-and-stun-parameters/and-relay.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.vdo.ninja/advanced-settings/turn-and-stun-parameters/and-autorelay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
