> For the complete documentation index, see [llms.txt](https://docs.agentalk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agentalk.io/phone-numbers/configure-and-test-your-phone-number.md).

# Configure and test your phone number

After adding a phone number, you need to assign agents and verify that calls are working correctly before going live.

In this guide, you’ll learn how to configure inbound and outbound agents, optionally set up SIP settings, and run a test call to confirm your setup.

A phone number can use different agents for inbound and outbound calls. This is recommended, as each call direction requires a different opening message.

### Before you start

You need the following before you begin:

* At least one phone number added to your account. See [**Add a phone number**](/phone-numbers/add-a-phone-number.md).
* At least one agent created. See [**Create an agent**](/ai-agents/create-an-agent.md).
* If you handle both inbound and outbound calls, you should have two agents ready, one for each direction.

{% hint style="info" %} <mark style="color:$info;">**Use separate agents for each direction**</mark>

Create separate agents for inbound and outbound calls. The opening script must differ depending on whether the agent is receiving or initiating the call.
{% endhint %}

Follow these steps to assign agents and verify your setup.

{% stepper %}
{% step %}

### Open the phone number settings

Open the configuration page for the phone number you want to update.

1. Go to **Phone Numbers** from the sidebar.
2. Select the phone number.

<figure><img src="/files/1TaCvFv5P75Tg43NMf1N" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure agent settings

Assign the agents that will handle inbound and outbound calls for this phone number.

* In **Incoming calls agent**, select the agent for inbound calls.
* In **Outgoing calls agent**, select the agent for outbound calls.

{% hint style="info" %} <mark style="color:$info;">**Inbound vs outbound behavior**</mark>\
Inbound agents answer calls initiated by the user and should greet accordingly. Outbound agents initiate calls and should introduce themselves and explain the purpose of the call.
{% endhint %}

{% hint style="success" %} <mark style="color:$success;">**Duplicate an agent**</mark>\
Duplicate an existing agent and update only the opening line to quickly create a version for the opposite call direction.
{% endhint %}

<figure><img src="/files/WfRl3GA309OtlR0YJNdC" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### (Optional) Configure SIP settings

Complete this step only if you are using an external phone carrier. These settings connect Agentalk to your SIP provider so the agent can make outbound calls.

1. Enable **External phone carrier.**
2. Enter the required SIP credentials from your provider:
   * **SIP username**: Provided by your SIP carrier.
   * **SIP password**: Provided by your SIP carrier.
   * **Termination URI**: The SIP endpoint used to route outbound calls (for example, provided by your carrier).
3. Click **Save & Enable SIP.**

{% hint style="warning" %} <mark style="color:$warning;">**Required for outbound calls**</mark>\
If SIP is required and not configured, outbound calls will not work.
{% endhint %}

<figure><img src="/files/hiJv4xV2Ozkgiq89ISgk" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Run a test call

Place a test call to confirm that your configuration works correctly.

1. Go to **Make Test Call.**
2. Enter **Recipient Name.**
3. Enter **Recipient Number.**
4. Click **Start Call.**

<figure><img src="/files/7Jh7XAI9I0jqQXtHxw3D" alt=""><figcaption></figcaption></figure>

Verify the following:

* The correct agent is used.
* The greeting matches the call direction.
* Audio quality is clear.
* Response time is acceptable.
* The call ends correctly.

{% hint style="info" %} <mark style="color:$info;">**Testing recommendation**</mark>\
Use your own phone number for the initial test to quickly validate the setup.
{% endhint %}
{% endstep %}
{% endstepper %}

### Next steps

Here are the recommended next steps after completing this guide:

* [**Manage contacts**](/contacts/manage-contacts.md): Add and organize the contacts your agent will call
* [**Create an outbound campaign**](/campaigns/create-an-outbound-campaign.md): Launch a campaign to start calling automatically
* [**Setup checklist**](/getting-started/setup-checklist.md): Review the full setup process to ensure everything is configured correctly


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.agentalk.io/phone-numbers/configure-and-test-your-phone-number.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
