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

# Quick Start

> Get started with Phone Numbers in 4 simple steps

## Overview

Get up and running with Phone Numbers quickly. Follow these steps to add a phone number, assign it to a Voice Agent, and start making calls.

## Prerequisites

Before getting started, ensure you have:

* An active project selected
* Appropriate permissions to manage phone numbers
* Provider credentials (Twilio Account SID and Auth Token, or SIP trunk details)
* A phone number from your provider (Twilio) or SIP trunk configured

<Info>
  **Voice Agent Optional**: You don't need a Voice Agent to add phone numbers. Voice Agents are only required when assigning numbers for inbound calls or making outbound calls.
</Info>

## Quick Start Steps

### 1. Navigate to Phone Numbers

* Go to the [Phone Numbers section](https://agents.tryhamsa.com/app/provider-numbers) in your dashboard
* Or navigate via Dashboard → Bring Your Own Phone Number

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/navigate-to-phone-number-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=14490a3cf5973d271e42d3d87f012834" alt="Navigate to Phone Numbers section" width="1918" height="867" data-path="images/phone-numbers/navigate-to-phone-number-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/navigate-to-phone-number-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=55cca127261eff7a95c8ee39556c6b02" alt="Navigate to Phone Numbers section" width="1918" height="866" data-path="images/phone-numbers/navigate-to-phone-number-dark.png" />

### 2. Add a Phone Number

#### For Twilio:

* Click the "Add Number" button
* Select "Twilio" from the dropdown

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/add-twilio-number-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=23f66e9d7e25263a88161ed1aee04921" alt="Phone Numbers section with Add Number button" width="400" data-path="images/phone-numbers/add-twilio-number-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/add-twilio-number-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=076a6cb01ff6b2060fe54fec4922f4aa" alt="Phone Numbers section with Add Number button" width="400" data-path="images/phone-numbers/add-twilio-number-dark.png" />

* Fill in the required information:
  * **Phone Number**: Enter your Twilio phone number in E.164 format (e.g., +12025551234)
  * **Label**: Provide a descriptive name (e.g., 'Support Line', 'Sales Hotline')
  * **Twilio Account SID**: Enter your Twilio Account SID
  * **Twilio Auth Token**: Enter your Twilio Auth Token
* Click "Save" to add the phone number

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/twilio-form-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=4f4c0be200aca791e6138192a0521940" alt="Phone Numbers section with Add Twilio Number details" width="1517" height="866" data-path="images/phone-numbers/twilio-form-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/twilio-form-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=65d7d374ccc149b8ca9c162f6e6a53e8" alt="Phone Numbers section with Add Twilio Number" width="1517" height="867" data-path="images/phone-numbers/twilio-form-dark.png" />

#### For SIP Trunk:

* Click the "Add Number" button
* Select "SIP Trunk" from the dropdown

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/add-sip-number-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=d13132797f669e29d7e80e531e739e49" alt="Phone Numbers section with Add SIP Number " width="400" data-path="images/phone-numbers/add-sip-number-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/add-sip-number-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=ef7d30411ada403524ac88f97a1af4f3" alt="Phone Numbers section with Add SIP Trunk Number details" width="400" data-path="images/phone-numbers/add-sip-number-dark.png" />

* Fill in the required information:
  * **Label**: Provide a descriptive name
  * **Phone Number**: Choose one of two options:
    * **Phone Number** (radio button): Select country code from dropdown and enter phone number in standard format
    * **Other** (radio button): Enter phone number or identifier in custom format (text input field)

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/sip-form-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=966e5e135c615d7216a6351ea368b517" alt="New Phone Number form with Number Config, Inbound and Outbound Configuration" width="1507" height="797" data-path="images/phone-numbers/sip-form-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/sip-form-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=f69227fd8631786c2f28aff520ad3914" alt="New Phone Number form with Number Config, Inbound and Outbound Configuration" width="1506" height="797" data-path="images/phone-numbers/sip-form-dark.png" />

* Configure **Inbound Settings**:
  * Select Origination URI type (SIP-TCP or SIP-UDP)
  * Copy the provided webhook URL to configure in your SIP trunk

* Configure **Outbound Settings**:
  * **Address**: Enter SIP destination (IP or domain)
  * **Transport Type**: Select TCP or UDP
  * **Authentication** (optional):
    * SIP Trunk Username
    * SIP Trunk Password
  * **Custom Headers** (optional):
    * Click the "+ Add Header" button to add a new header
    * Enter a key (e.g., 'X-Carrier-ID', 'X-Trunk-Group')
    * Enter a value (e.g., 'CARRIER123', 'PRIMARY')
    * Add multiple headers as needed for routing, metadata, or carrier integration
    * Remove headers by clicking the trash icon
    * Custom headers are used for call routing and carrier-specific requirements

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/add-headers-sip-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=e696474dd9c91f366bbce377b3b15242" alt="Custom SIP Headers section with Add Header button and key/value inputs" width="946" height="167" data-path="images/phone-numbers/add-headers-sip-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/add-headers-sip-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=de8ba4ce6c3b6fd2e0a2001429763c35" alt="Custom SIP Headers section with Add Header button and key/value inputs" width="952" height="175" data-path="images/phone-numbers/add-headers-sip-dark.png" />

* Click "Test Connection" to verify your SIP configuration

<img className="block dark:hidden" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/test-connection-sip-light.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=ffd6af56b8da08c4e02967cdfb5c91cb" alt="Test Connection section for SIP configuration" width="948" height="82" data-path="images/phone-numbers/test-connection-sip-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/hamsa-452fa79a/z1y0oNwHv1IXNjPW/images/phone-numbers/test-connection-sip-dark.png?fit=max&auto=format&n=z1y0oNwHv1IXNjPW&q=85&s=902f9830745e32186f013355887b36dd" alt="Test Connection section for SIP configuration" width="952" height="82" data-path="images/phone-numbers/test-connection-sip-dark.png" />

* Click "Save" when the connection test passes

<Info>
  **Finding Twilio Credentials:**

  * Log in to your [Twilio Console](https://console.twilio.com/)
  * Find your Account SID and Auth Token on the dashboard
  * Ensure you have purchased a phone number in Twilio

  **SIP Trunk Setup:**

  * Obtain SIP trunk details from your telephony provider
  * Configure your SIP trunk to accept connections from Hamsa
  * Add the provided webhook URL to your trunk configuration
  * Whitelist Hamsa's IP addresses in your firewall if needed
</Info>

### 3. Assign to Voice Agent

* After saving, your phone number appears in the list
* Click the phone number to view details
* In the "Voice Agent Assignment" section:
  * Click the dropdown showing "None"
  * Select a Voice Agent from the list
  * Confirm the assignment

<Warning>
  If reassigning an already assigned number, you'll be asked to confirm the change to prevent accidental reassignment.
</Warning>

### 4. Test Your Setup

#### For Inbound Calls:

* Call your phone number from any phone
* Your assigned Voice Agent should answer
* Have a conversation to test the agent's responses
* Check Call History to review the call details

#### For Outbound Calls:

* Click "Make Outbound Call" in the phone number details
* Enter the destination phone number
* Add any custom parameters (optional)
* Configure webhook URL and authentication (optional)
* Click "Make Call"
* Answer the call on the destination phone
* Check Call History for call details

<Info>
  **Outbound Call Requirements:**

  * Phone number must be assigned to a Voice Agent
  * API key must be configured in your project settings
  * The assigned Voice Agent must exist and be properly configured
</Info>

## Next Steps

Now that you've added and configured your first phone number:

* **[Managing Phone Numbers](./managing-numbers)** - Learn detailed steps for managing your phone numbers
* **[Making Outbound Calls](./making-calls)** - Understand all outbound calling options
* **[Batch Calls](/agents/batch-calls/introduction)** - Use your phone number for batch calls
* **[Best Practices](./best-practices)** - Optimize your phone number usage

## Common Issues

### Phone Number Not Receiving Calls

**Twilio:**

* Verify your Twilio credentials are correct
* Check that the phone number is active in Twilio
* Ensure Twilio webhook is properly configured
* Verify your Twilio account has sufficient balance

**SIP Trunk:**

* Verify SIP destination address is reachable
* Check firewall rules allow SIP traffic
* Ensure custom headers are correct for your carrier
* Test SIP connection during initial setup (before saving)
* Verify authentication credentials if used

### Cannot Make Outbound Calls

**Troubleshooting:**

* Ensure phone number is assigned to a Voice Agent
* Verify the assigned agent exists and is configured
* Check that your API key is configured in project settings
* Verify you have available concurrency in your plan
* For SIP: ensure outbound configuration is correct

### Assignment Fails

**Possible causes:**

* Voice Agent may have been deleted
* Insufficient permissions to assign numbers
* Network connectivity issues

**Solutions:**

* Refresh the page and try again
* Verify the agent exists in the Voice Agents section
* Check your permissions with your administrator
* Contact support if issue persists

## Related Documentation

<CardGroup cols={2}>
  <Card title="Introduction" href="./introduction">
    Learn more about Phone Numbers features and capabilities
  </Card>

  <Card title="Managing Phone Numbers" href="./managing-numbers">
    Detailed guide on phone number management
  </Card>

  <Card title="Making Outbound Calls" href="./making-calls">
    How to make outbound calls using your phone numbers
  </Card>

  <Card title="Voice Agents" href="/agents/introduction">
    Create and configure Voice Agents
  </Card>

  <Card title="Batch Calls" href="/agents/batch-calls/introduction">
    Use phone numbers for batch calls
  </Card>
</CardGroup>
