> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/ai-voice-agents/connecting-your-sip-trunk/connect-a-dapta-managed-number.md).

# Connect a Dapta-managed number

Use a Dapta-managed number when you want Dapta to handle the phone number and SIP trunk setup for you. This is the simplest path: buy the number in Dapta, assign it to an agent, then use it for inbound or outbound calls.

{% hint style="info" %}
This is different from connecting your own Twilio account as a SIP trunk. If your company owns the Twilio account or wants calls to route through its own Twilio Elastic SIP Trunking setup, use the bring-your-own SIP trunk guide instead.
{% endhint %}

***

## Before you begin

Make sure you have:

* A **Voice Agent** already created.
* Access to **Voice Agents > Phone Numbers**.
* Enough **Dapta credits** for the monthly number charge shown during purchase.

{% hint style="info" %}
If you do not see the country, area code, or number type you need, contact Dapta Support for help with availability.
{% endhint %}

***

## Connect the number

**Step 1:** Open **Voice Agents > Phone Numbers**.

Click **Buy Phone Number** to open the number marketplace.

<figure><img src="/files/H0uCXg5jhyVrrqQ36VLc" alt="Dapta Phone Numbers page showing the Verified, Purchased, Compliance, and End Users tabs with the New Phone Number button"><figcaption><p>Use the Phone Numbers page to verify, purchase, and manage numbers for Voice Agents.</p></figcaption></figure>

***

**Step 2:** Choose the phone number you want to use.

Search by the available filters, review the monthly credit charge, and click **Buy**. Confirm the purchase when Dapta shows the summary.

For the full buying flow, see:

{% content-ref url="/pages/we5zspVTGdlh8PjAmZVe" %}
[Buying Phone Numbers through Dapta](/ai-voice-agents/buying-phone-numbers-through-dapta.md)
{% endcontent-ref %}

***

**Step 3:** Assign the number to a Voice Agent.

After purchase, select the number, choose the **Voice Agent** that should answer calls, and click **Save Changes**.

***

**Step 4:** Test inbound calling.

Call the purchased number from a real phone. The assigned Voice Agent should answer and follow its configured prompt, tools, and call behavior.

You can also review the inbound call guide:

{% content-ref url="/pages/cBC9eVlBwGis5PgvXSXg" %}
[Inbound Calls and How to Activate Them](/ai-voice-agents/inbound-calls-and-how-to-activate-them.md)
{% endcontent-ref %}

***

**Step 5:** Use the number for outbound calling.

When you place test calls, run campaigns, or use a **Dapta Phone Call** node, select the managed number anywhere Dapta asks for the calling number or **From** number.

For outbound setup details, see:

{% content-ref url="/pages/yn7tfi9GqIKoGvAANXyv" %}
[Verifying an Existing Phone Number for Outbound Calls](/ai-voice-agents/verifying-phone-numbers-in-dapta.md)
{% endcontent-ref %}

{% content-ref url="/pages/0b3T09pM5YAcVQeKKAzF" %}
[Dapta Phone Call](/flow-studio/nodes/dapta-phone-call.md)
{% endcontent-ref %}

***

**Step 6:** Use the number in campaigns when you are ready to call at scale.

Create or open a campaign, assign the Voice Agent that uses the number, and use **Phone Number Rotation** if you want Dapta to rotate through more than one outbound number.

{% content-ref url="/pages/5MPXltpjbRmsnZdLbpCA" %}
[Create a campaign](/ai-voice-agents/how-to-create-your-first-campaign-in-dapta/create-a-campaign.md)
{% endcontent-ref %}

{% content-ref url="/pages/oAicUT9kkH5vABsAXEao" %}
[Managing your campaign](/ai-voice-agents/how-to-create-your-first-campaign-in-dapta/managing-your-campaign.md)
{% endcontent-ref %}

***

## Troubleshooting

| Issue                                             | What to check                                                                                                 |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| The number does not appear after purchase         | Refresh **Phone Numbers**. If it still does not appear, contact Support with the purchase time and workspace. |
| Calls to the number do not reach the agent        | Confirm the number is assigned to the correct **Voice Agent** and saved.                                      |
| Outbound calls do not use the number you expected | Check the **From** number in the test call, campaign, or Flow Studio configuration.                           |
| The country or area code is not available         | Contact Support for international number assistance.                                                          |


---

# 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.dapta.ai/ai-voice-agents/connecting-your-sip-trunk/connect-a-dapta-managed-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.
