> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://doc.youratlas.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://doc.youratlas.com/_mcp/server.

# SIP trunking

SIP trunking lets you keep your number with your carrier. Calls travel over your trunk, and transfers go to SIP addresses instead of dialed numbers. Use it when you own numbers you can't move, when your carrier contract or compliance rules require the trunk, or when calls must stay inside a PBX you already run.

The **SIP Trunking** option shows in the provider list only when it is turned on for your account. If you don't see it, contact support at [support@youratlas.com](mailto:support@youratlas.com).

## Network requirements

Atlas sends SIP signalling and media from a fixed set of IP addresses. Allowlist them on your firewall, SBC or PBX so traffic can pass between Atlas and your trunk. Ask support for the current Atlas SIP addresses for your account. They carry SIP traffic only.

## What you need

Collect these from your carrier or PBX administrator before you start:

| What              | Notes                                                                                                   |
| ----------------- | ------------------------------------------------------------------------------------------------------- |
| SIP phone number  | The DID that terminates on your trunk, in full international format (E.164), for example `+1 555 0123`. |
| SIP address       | The hostname of your SIP server, for example `sip:pbx.example.com`.                                     |
| SIP IP address    | The IP that hostname resolves to. Your carrier may need the Atlas IPs allowlisted on their side too.    |
| Outbound username | Digest authentication username for outbound calls.                                                      |
| Outbound password | Digest authentication password for outbound calls.                                                      |

IP-based authentication only works reliably when your carrier gives you a dedicated termination URI or SIP server. On a shared endpoint, give outbound authentication credentials instead.

## Connect your trunk

1. Open **Settings**, then **Phone numbers**, and select **Get phone number**. Pick **Voice** and choose the job. See [Phone numbers and Twilio](/v2/integrations/popular/phone-numbers-and-twilio#open-the-number-setup).
2. In the **Phone number integration** window, pick **SIP Trunking** under **Select Provider**, then select **Next**.
3. Fill in the fields below and select **Next**.

Atlas registers the number against your trunk and links it to the job.

Which form you get depends on your account. One form asks for the number only. The other asks for the number and your trunk details.

| Field                                                                   | Required | What to put                                                                                                     |
| ----------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
| **SIP phone number** (number-only form) or **Phone number** (full form) | Yes      | The number on your SIP carrier, in international format. Start with + and the country code.                     |
| **Termination SIP URI** (full form only)                                | Yes      | The gateway Atlas sends signalling to. The hostname or IP your carrier gave you, for example `sip.example.com`. |
| **Outbound auth username (optional)** (full form only)                  | No       | Digest username for outbound calls. Leave blank only if your carrier authenticates by IP.                       |
| **Outbound auth password (optional)** (full form only)                  | No       | Digest password for outbound calls. Leave blank only if your carrier authenticates by IP.                       |

Once saved, the number appears with your other numbers on the Phone numbers page, labelled **SIP Trunking**.

## Call transfers over SIP

A job on a SIP trunk uses a SIP transfer form. Destinations are SIP addresses. The agent hands the call back onto your trunk instead of placing a new outbound call. For how transfers work in general, see [Call forwarding and transfer](/v2/jobs/answer-calls/call-forwarding-and-transfer).

On the job's call forwarding setup (**Set up call forwarding**), each destination is one entry in the **Transfers** list. Select **Add transfer** for each destination.

| Field                             | Required | What to put                                                                                                                                        |
| --------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Name/Department to forward to** | Yes      | The label the agent uses, such as `Sales` or `Billing`. Names must be unique on the job.                                                           |
| **SIP URI**                       | Yes      | The destination as `sip:user@host.domain`, for example `sip:sales@pbx.example.com`. Each URI can be used once per job.                             |
| **Phone Number**                  | No       | Kept with the entry for your own records.                                                                                                          |
| **Headers**                       | No       | Custom headers sent with the transfer. Select **Add Header**, then fill in **Key** and **Value**.                                                  |
| **Message while transferring**    | No       | What the agent says before it connects the call, in the caller's language. Type the **Default** text. Select **Add language** for other languages. |
| **Default line**                  | No       | Switch on for the destination used when the agent can't find who the caller asked for after 3 tries. Only one entry can be the default.            |

Select **Save** when you are done. An entry without both a name and a SIP URI is not saved.

You can import destinations from another job. Select **Import**. Depending on your account, a menu offers "**From existing campaign**" and "**From CSV file**", or the job import opens directly. For a job import, pick the job in the "**Select Campaign**" list and select **Import & Replace**. Only entries that already have a SIP URI come over. CSV rows need a name and a SIP URI that starts with `sip:` or `sips:`. For CSV import, see [Call forwarding and transfer](/v2/jobs/answer-calls/call-forwarding-and-transfer).

Saving replaces every transfer destination on the job. Atlas deletes the existing entries and re-creates the ones on screen. Import & Replace does the same. Don't save a half-filled form and expect your old entries to survive.

### SIP headers

Headers are key and value pairs sent with the transfer. Use them to pass context to your PBX or carrier, such as a queue name, an account reference or a routing hint. Atlas sends them as written, so match the header names your PBX routes on. A header with an empty **Key** is dropped.

## Troubleshooting

If **SIP Trunking** isn't in the provider list, the feature isn't turned on for your account. Contact support.

If the form says "Phone number is required" or "Gateway IP is required", fill in **Phone number** and **Termination SIP URI**.

If the number-only form says "Enter the number in international format, starting with + and the country code.", start the number with + and the country code.

If calls don't reach the agent, check three things: your carrier routes the number to the Atlas gateway, the termination SIP URI is right, and the Atlas SIP IPs are allowlisted.

If calls are rejected at setup, your carrier expects digest credentials but the fields were left blank, or the source IP isn't allowlisted on a shared endpoint. Fill in the outbound auth fields or allowlist the IPs.

If a transfer won't save and the form says "Invalid SIP URI", write it as `sip:user@host.domain`. The form does not accept `sips:` URIs and requires a dot in the host.

If the form says "Duplicate SIP URIs found" or "Duplicate names are not allowed", remove the repeated entry.

If transfers connect but land in the wrong place, the destination URI or its headers don't match what your PBX routes on.