---
title: "Media sites"
description: "How Bird chooses the media site that carries each call's audio on your SIP trunk, and how to pick the sites your trunk may use."
canonical: "https://bird.com/docs/guides/voice/media-sites"
---

# Media sites

A media site is a Bird location that carries call audio. Your trunk's signalling always runs in your workspace's region, but the audio between Bird and your equipment can run at any media site you enable. For each call, Bird picks the enabled site with the shortest audio path.

Each media site has its own media addresses. Before you enable a site, allow its addresses on your firewall or SBC. Otherwise, calls through that site connect with no audio, or with audio in one direction only.

## Sites

| Site          | Code  | Signalling                               |
| ------------- | ----- | ---------------------------------------- |
| Europe        | `eu1` | Yes, for workspaces in Europe            |
| United States | `us1` | Yes, for workspaces in the United States |
| Asia Pacific  | `ap1` | No; it carries audio only                |

Your trunk's home site is your workspace's region, the region in its SIP domain, `<trunk-id>.trunk.<region>.sip.bird.com`. The home site is always enabled. A new trunk enables all three sites.

## How Bird chooses a site

Bird chooses the site when a call starts, and the call keeps that site until it ends.

### Choosing by latency

Your home site is the default. Bird estimates the delay of the audio path through each enabled site: from the side that starts the call to the site, and from the site to the side that answers. Another site replaces your home site only when its estimate is at least 20 ms lower.

Each estimate uses round-trip times measured on recent calls from the same address or network, and to the same gateway. Where Bird has no measurements, it uses the distance between the address and the site. Bird compares only the ends it can estimate for every site, and a call with no estimate at either end stays at your home site. If the chosen site can't take the call, the call's audio runs at your home site.

For example, when a PBX in Singapore calls out through a Europe trunk with Asia Pacific enabled, the audio can stay in `ap1` instead of traveling to Europe and back.

Some carriers carry audio only at certain sites. A call through such a carrier uses only the enabled sites that carrier works with, and stays at your home site if there are none. The audio between Bird and the carrier can run at a site of its own.

### Which calls use media sites

| Call                                                                                                                            | Audio site                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| Your equipment calls out through the trunk                                                                                      | Chosen among the trunk's enabled sites                                                                |
| A call from the [browser phone](/docs/guides/voice/phone) to an external number                                                 | Chosen among the trunk's enabled sites                                                                |
| A call to your number delivered to your gateways                                                                                | Chosen among the trunk's enabled sites                                                                |
| A call to your number delivered to a gateway whose **Exit data center** is another region, or to a hunt group that includes one | Your home site                                                                                        |
| A sequence's **Dial** step to your gateways                                                                                     | The site the call already uses when your trunk enables it; otherwise a second site your trunk enables |
| A call to your number delivered to your gateways on a trunk with `media_bypass`                                                 | No media site: Bird stays out of the audio path                                                       |

## Choose your trunk's sites

Enable only the sites whose media addresses your equipment accepts.

1. Allow the media addresses of the site on your firewall or SBC. See [media addresses](/docs/guides/voice/network-requirements#media-addresses).
2. In the dashboard, open **Voice** > **SIP trunks**, select the trunk, and open **Media**.
3. Under **Media sites**, turn the site on. The change saves immediately and applies to new calls.

To turn a site off, switch it off under **Media sites**. Calls that already use it keep it until they end. You can't turn off your home site.

Through the API, set `media.sites` with [update a voice trunk](/docs/api/reference/update-voice-trunk). The list replaces the trunk's sites and must include the home site.

## Troubleshooting

| What you see                                                                 | What to check                                                                                                                                                                                                                                                                                                                                    |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Some calls connect with no audio, or audio in one direction, and others work | Allow the [media addresses](/docs/guides/voice/network-requirements#media-addresses) of every site the trunk enables, or turn off the sites your equipment doesn't accept. If **Media sites** shows only your home site turned on, the trunk's sites were never saved: set `media.sites` to your home site through the API so every call uses it |
| Calls stay at your home site after you enable another site                   | Expected when no other site's estimate is at least 20 ms lower                                                                                                                                                                                                                                                                                   |

## Related resources

- [What is a voice API?](/explained/voice/what-is-a-voice-api) (answer)
- [Voice](/voice-api) (product)
- [Voice overview](/docs/guides/voice/overview) (docs)

[Get an implementation brief](/learn/workspace?topic=voice)
