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

# Phone Numbers

> Provision, manage, and configure the telephony infrastructure for your AI agents—including Twilio, managed accounts, and custom SIP providers.

The **Phone Numbers** page is your control center for telephony. Before you can buy numbers or route inbound and outbound calls, you must configure your underlying telephony provider.

Agni natively supports **Twilio** (both Bring-Your-Own-Account and Managed options) as well as **Custom Providers** via SIP trunking.

<Frame>
  <img src="https://mintcdn.com/agni/wGEXRTXXwORCEgLm/images/telephony-strategy.png?fit=max&auto=format&n=wGEXRTXXwORCEgLm&q=85&s=9968f95d0c2135aa5976eef3e9ace133" alt="Choose Your Account Strategy" width="1919" height="1079" data-path="images/telephony-strategy.png" />
</Frame>

***

## First-Time Setup: Choose Your Strategy

When you access the Phone Numbers tab, you must first choose how you want to connect and manage your telephony infrastructure from the left-hand **Providers** menu.

### Option 1: Custom Provider (SIP Integration)

Choose this option if you want to bring your own telephony carrier (BYOC) using SIP trunking. This allows you to route calls from any external provider directly into your Agni agents.

<Frame>
  <img src="https://mintcdn.com/agni/wGEXRTXXwORCEgLm/images/image_0d5e7e.png?fit=max&auto=format&n=wGEXRTXXwORCEgLm&q=85&s=504c315304fd09b46676288014ca182b" alt="Custom Provider SIP Configuration" width="1919" height="1079" data-path="images/image_0d5e7e.png" />
</Frame>

<Steps>
  <Step title="Select Custom Provider" icon="plug">
    Navigate to the **Custom Provider** tab under the Providers menu.
  </Step>

  <Step title="Enter Number Details" icon="phone">
    Input the **Phone Number** you are importing (including the country code) and assign it a **Friendly Name** for easy identification within your workspace.
  </Step>

  <Step title="Set Termination URI" icon="link">
    To successfully route inbound calls to your Agni agents, configure your external provider to point to Agni's infrastructure using our dedicated Termination URI:

    `sip:68uajga988j.sip.livekit.cloud`

    Input this into the **Termination URI** field.
  </Step>

  <Step title="Configure SIP Credentials" icon="shield-halved">
    Enter your **SIP Username** and **SIP Password** to authenticate the connection securely.
  </Step>

  <Step title="Import Number" icon="download">
    Click **Import Custom Number** to finalize the configuration. The number will immediately become available in your active inventory.
  </Step>
</Steps>

### Option 2: Twilio - Your Own Account (BYOT)

Choose this option if you already have a Twilio account and want full ownership, compliance control, and direct billing from Twilio.

<Steps>
  <Step title="Select Your Own Account" icon="user-gear">
    Under the **Twilio** provider tab, click **Choose this option** under the "Your Own Account" card.
  </Step>

  <Step title="Confirm Selection" icon="check-double">
    A confirmation modal will appear. Click **Continue Setup** to lock in your configuration.

    <Frame>
      <img src="https://mintcdn.com/agni/wGEXRTXXwORCEgLm/images/telephony-byot-confirm.png?fit=max&auto=format&n=wGEXRTXXwORCEgLm&q=85&s=458f826dd0a4ecaf69a20014f92da71f" alt="Confirm BYOT Selection" width="382" height="318" data-path="images/telephony-byot-confirm.png" />
    </Frame>
  </Step>

  <Step title="Enter Credentials" icon="key">
    Provide a **Friendly Name** for your integration, along with your Twilio **Account SID** and **Auth Token**. These can be found in your [Twilio Console](https://console.twilio.com). Click **Connect Account**.

    <Frame>
      <img src="https://mintcdn.com/agni/wGEXRTXXwORCEgLm/images/telephony-byot-credentials.png?fit=max&auto=format&n=wGEXRTXXwORCEgLm&q=85&s=751e692094b67e3fe419b296f31edf86" alt="Enter Twilio Credentials" width="1919" height="1079" data-path="images/telephony-byot-credentials.png" />
    </Frame>
  </Step>
</Steps>

<Note>
  **When to choose BYOT:** If you need regulatory compliance control, already have Twilio numbers, want to keep telephony billing separate from Agni, or need access to Twilio's full feature set.
</Note>

### Option 3: Twilio - Managed Account

Choose this option if you want a zero-configuration experience. Agni will manage the underlying infrastructure, and telephony usage will be deducted directly from your Agni credit balance.

<Steps>
  <Step title="Select Managed Account" icon="server">
    Under the **Twilio** provider tab, click **Choose this option** under the "Managed Account" card.
  </Step>

  <Step title="Accept Terms and Conditions" icon="file-signature">
    Because Agni handles the billing and compliance for Managed Accounts, you must review and accept the telephony terms.

    <Accordion icon="scale-balanced" title="View Terms & Conditions Summary">
      * **Service Selection:** The Managed Twilio selection is permanent and cannot be changed without administrative approval.
      * **Credit-Based Subscription:** Services operate on prepaid credits. Unused credits expire at the end of each billing cycle.
      * **Phone Number Renewal:** Phone numbers must be renewed every 28 days. Failure to renew within the 48-hour window will result in permanent number release.
      * **Strict No Refund Policy:** All purchases are final. No refunds are issued for unused credits, missed renewals, service interruptions, or account termination.
    </Accordion>

    <Frame>
      <img src="https://mintcdn.com/agni/wGEXRTXXwORCEgLm/images/telephony-managed-terms.png?fit=max&auto=format&n=wGEXRTXXwORCEgLm&q=85&s=ebd9383036cad0e510d0d8825fd78786" alt="Telephony Terms and Conditions" width="1919" height="1079" data-path="images/telephony-managed-terms.png" />
    </Frame>
  </Step>

  <Step title="Assign Friendly Name" icon="tag">
    Give your managed connection a **Friendly Name** to identify it in your workspace, then click **Connect Account** to finalize the setup.
  </Step>
</Steps>

<Note>
  **When to choose Managed:** If you want the fastest setup, don't have an existing provider, and prefer consolidated billing through Agni.
</Note>

### Option 4: Indian Telephony

Choose this option if you need to provision Indian (+91) phone numbers. You will need to complete a KYC compliance process before you can buy numbers.

<Steps>
  <Step title="Select Indian Telephony" icon="globe">
    Under the **Indian Telephony** provider tab from the left menu.
  </Step>

  <Step title="Verify mobile number" icon="mobile-screen-button">
    Verify your mobile number to start the process.
  </Step>

  <Step title="Submit KYC" icon="id-card">
    Complete the KYC (Know Your Customer) compliance process. This is a regulatory requirement for provisioning Indian phone numbers.
  </Step>

  <Step title="Buy Number" icon="cart-shopping">
    Once approved, you can purchase Indian numbers.

    * **Monthly fee** — ₹295/mo.
    * **Outbound rate** — ₹0.60/min.
    * **Inbound rate** — ₹0.60/min.
  </Step>
</Steps>

***

## Managing Phone Numbers

Once your account strategy is configured, you will unlock the main Phone Numbers dashboard.

<Frame>
  <img src="https://mintcdn.com/agni/wGEXRTXXwORCEgLm/images/telephony-dashboard.png?fit=max&auto=format&n=wGEXRTXXwORCEgLm&q=85&s=1b7e42043cba889da0426bde46353438" alt="Phone Numbers Dashboard" width="1919" height="1079" data-path="images/telephony-dashboard.png" />
</Frame>

### Buy a New Number (Twilio Only)

If you are using a Twilio integration, use the left panel to search for and purchase new phone numbers directly into your workspace:

<Steps>
  <Step title="Select Country" icon="globe">
    Select your desired **Country** from the dropdown menu to load available inventory.
  </Step>

  <Step title="Search & Filter" icon="magnifying-glass">
    Use the search bar to filter for specific area codes, prefixes, or vanity patterns.
  </Step>

  <Step title="Review Pricing" icon="money-bill">
    Review the costs associated with the number:

    * **Monthly fee** — Flat rate for owning the number (e.g., \$1.15/mo for US numbers).
    * **Outbound rate** — Per-minute cost for calls your agent makes (e.g., \$0.0945/min).
    * **Inbound rate** — Per-minute cost for calls your agent receives (e.g., \$0.0085/min).
  </Step>

  <Step title="Purchase" icon="cart-shopping">
    Select a number and click **Buy Number** to provision it immediately to your workspace.
  </Step>
</Steps>

### Owned Numbers

The right panel displays your active inventory, including any numbers you have purchased or imported via a Custom Provider. Any number listed here is immediately ready to be used in your [Inbound Calls](/guides/inbound-calls) dispatch rules or as a Caller ID for outbound campaigns.

<Warning>
  Phone numbers on Managed Accounts must be renewed every 28 days. Set a reminder or monitor your [Billing](/guides/billing) page to avoid accidental number loss.
</Warning>

***

## API Reference

Agni's Telephony API allows you to automate number provisioning and management directly from your backend.

<CardGroup cols={2}>
  <Card title="List Available Numbers" icon="magnifying-glass" href="/api-reference/telephony/list-available-numbers">
    Search the inventory for numbers available to purchase in any country.
  </Card>

  <Card title="Buy Number" icon="cart-shopping" href="/api-reference/telephony/buy-number">
    Programmatically purchase a number and add it to your workspace.
  </Card>

  <Card title="List Purchased/Imported Numbers" icon="list" href="/api-reference/telephony/list-purchased-numbers">
    Retrieve the active inventory of phone numbers connected to your account.
  </Card>

  <Card title="Release Number" icon="trash" href="/api-reference/telephony/release-number">
    Release a phone number or remove a custom provider connection.
  </Card>
</CardGroup>
