> ## Documentation Index
> Fetch the complete documentation index at: https://docs.astradial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure routing

> Set up how incoming calls to your phone numbers are routed — to extensions, queues, AI bots, or external numbers.

When someone calls your phone number, Astradial needs to know where to send that call. This is called **routing**. You can route calls to different destinations depending on your needs.

## Routing types

| Type          | Description                                 | Example destination                |
| ------------- | ------------------------------------------- | ---------------------------------- |
| **Extension** | Ring a specific person's SIP phone          | 1001                               |
| **Queue**     | Put the caller in a call queue              | 5001                               |
| **IVR**       | Connect to an interactive voice menu        | Select IVR from dropdown           |
| **AI Agent**  | Connect to an AI voice bot via WebSocket    | `wss://gateway.example.com/ws/...` |
| **External**  | Forward the call to an outside phone number | +919944421125                      |

## How to set up routing

<Steps>
  <Step title="Go to Phone Numbers">
    Click **Phone Numbers** in the sidebar.
  </Step>

  <Step title="Find your number">
    In the **My Numbers** tab, find the phone number you want to configure.
  </Step>

  <Step title="Open routing settings">
    Click the three-dot menu on the right side of the row, then click **Configure Routing**.
  </Step>

  <Step title="Choose a routing type">
    Select one of the five routing types from the dropdown.
  </Step>

  <Step title="Set the destination">
    Depending on the type you chose:

    * **Extension** — Select a user from the dropdown (shows their extension and name)
    * **Queue** — Select a queue from the dropdown (shows queue number and name)
    * **IVR** — Select an IVR from the dropdown (shows IVR extension and name). Must be a **published** IVR.
    * **AI Agent** — Enter the WebSocket URL for your bot
    * **External** — Enter the full phone number
  </Step>

  <Step title="Save">
    Click **Save**. The routing change takes effect immediately.
  </Step>
</Steps>

## Common routing setups

### Route to a receptionist

Route your main phone number to a single person:

* **Routing type:** Extension
* **Destination:** 1001 (receptionist's extension)

### Route to a call center queue

Put callers in line and distribute to available agents:

* **Routing type:** Queue
* **Destination:** 5001 (your support queue)

### Route to an IVR

Play a menu and let the caller pick:

* **Routing type:** IVR
* **Destination:** Pick your IVR from the dropdown

See [Create an IVR](/ivr/create-ivr) if you haven't built one yet. An IVR must be **published** before it shows up in the dropdown.

### Route to an AI bot

Let an AI assistant answer the call first:

* **Routing type:** AI Agent
* **Destination:** The WebSocket URL from your bot configuration

### Forward to a mobile number

Send calls to an outside phone:

* **Routing type:** External
* **Destination:** +919944421125

<Tip>
  You can change routing at any time. For example, route to an AI bot during off-hours and to a queue during business hours.
</Tip>
