# Manage Outbound Routes

Once your outbound routes are in place, you can fine-tune how they behave: change the order in which they are evaluated, update their settings, or remove ones you no longer need. All of these tasks live under **Call Control > Outbound Route** in the web portal.

## Order routes by priority

A single dialed number can satisfy the dial pattern (the digit template that decides which numbers a route accepts) of more than one outbound route. When that happens, Cloud Voice does not guess: it works down the list from top to bottom and sends the call out through the first route whose pattern matches. The route's position in the list is therefore its priority, and the topmost matching route always wins.

:::caution
Ordering matters most when your dial patterns overlap. A number such as `5503305` matches both `ZXXXXXX` and the catch-all `X.`, so the route that sits higher in the list is the one that actually carries the call.
:::

### Example

Imagine two routes that both accept the number `05503301`. Each route sends its calls over a different trunk (the connection to your phone service provider that carries calls to and from the outside world):

- **Long-distance call**: dial pattern `0XXXXXXX`, sends calls over trunk 1.
- **Local call**: dial pattern `X.`, sends calls over trunk 2.

Because `05503301` matches both patterns, the route listed first decides which trunk is used. If you want this call to go out on trunk 1, the **Long-distance call** route has to sit above **Local call**. Leave **Local call** on top and its `X.` pattern will claim the call first, pushing it out over trunk 2 instead.

To set the order:

1. In the web portal, go to **Call Control > Outbound Route**.
2. Use the arrow controls beside a route to move it:
   ![Move a route to the top of the list](/images/pbx/top.png)
   ![Move a route up one position](/images/pbx/up.png)
   ![Move a route down one position](/images/pbx/down.png)
   ![Move a route to the bottom of the list](/images/pbx/bottom.png)

:::note
Routes are matched from the top of the list downward, so arrange them from most specific to most general.
:::

## Edit a route

1. In the web portal, go to **Call Control > Outbound Route**.
2. Click the edit control next to the route you want to change:
   ![Edit the selected route](/images/pbx/edit.png)
3. Adjust the route's settings on its configuration page.
4. Click **Save**, then **Apply**.

## Delete a route

:::caution
Deleting an outbound route cannot be undone. Any call whose dialed number relied on this route will fail or fall through to a lower-priority route once the route is gone, so confirm that no active numbers depend on it before you remove it.
:::

1. In the web portal, go to **Call Control > Outbound Route**.
2. Click the delete control next to the route you want to remove:
   ![Delete the selected route](/images/pbx/delete.png)
3. Confirm by clicking **OK** in the dialog that appears.
4. Click **Apply**.
