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

# SIP Trunking In DialNexa

> Connect and test a DialNexa SIP trunk with credential or IP authentication, a termination URI, phone number, agent route, and audio review.

SIP trunking in DialNexa lets a workspace connect an existing phone number with username and password authentication or IP-based authentication while still using DialNexa agents, transcripts, recordings, call history, and monitoring.

![DialNexa SIP trunk modal with IP-based authentication selected and signaling IP allowlist guidance.](https://mintcdn.com/dialnexa/fmWKwU7MghyldcC5/images/documentation/screenshots/sip-trunk-ip-auth.png?fit=max\&auto=format\&n=fmWKwU7MghyldcC5\&q=85\&s=b4be0d31611cb8e76353ee510330e955)

> [!TIP]
>
> SIP trunking gives you control over the telephony path. It also gives you the homework: prove the path works before live traffic.

## Before You Begin

Collect the SIP phone number, termination URI, authentication method, expected caller ID behavior, and one published agent version for testing. For IP-based authentication, ask DialNexa support for the signaling IP used in your region and have the SIP provider allow it before saving the trunk.

## DialNexa SIP Trunking Versus Number Purchase

| Option | Use it when | Operational responsibility |
| - | - | - |
| Plivo number purchase | You want to buy and route a number inside DialNexa. | Number availability, compliance, provider readiness, and assignment. |
| SIP trunking | You already manage telephony and want DialNexa to connect to that route. | Termination URI, credentials, carrier behavior, caller ID, media path, and audio quality. |

## Fields In The SIP Trunk Modal

| Field | Required | Purpose |
| - | - | - |
| Phone Number | Yes | The E.164 number to link, such as `+12025551234`. |
| Termination URI | Yes | The SIP destination URI used for routing. |
| Authentication Method | Yes | Choose **Username & Password** or **IP-based authentication**. Username and password is the recommended default. |
| SIP Trunk Username | For username and password | Username issued by the SIP provider. It is hidden when IP authentication is selected. |
| SIP Trunk Password | For username and password | Password issued by the SIP provider. It is stored encrypted and hidden when IP authentication is selected. |
| Nickname | Optional | Human-readable label for the number. |
| SIP rate | Display only | Shows the per-minute SIP trunking rate before saving. |

IP-based authentication sends no SIP username or password. The provider authorizes outbound calls by the DialNexa signaling source IP. If provider IPs are not configured for inbound matching, outbound calls can work while inbound INVITEs cannot be mapped to the trunk.

## Link And Validate A SIP Number

**1. Open Phone Numbers**

Use the Phone Numbers page to start the SIP linking flow.

**2. Choose the authentication method**

Use **Username & Password** when the provider issued SIP credentials. Use **IP-based authentication** only after the provider has allowlisted the DialNexa signaling IP.

**3. Enter the SIP details**

Provide the phone number and termination URI. Enter both credentials for username and password authentication. Leave both absent for IP authentication.

**4. Assign published versions**

The number still needs inbound or outbound published agent versions. SIP decides the route, not the conversation behavior.

**5. Place an inbound test**

Confirm the correct agent answers, the caller hears audio, and Call History stores the call.

**6. Place an outbound test**

Confirm caller ID, audio quality, transcript quality, status, duration, and end reason.

## Validate And Save A SIP Trunk

After entering the trunk details, choose **Validate & save** to save the number and open **Validate your SIP trunk**. Saving the record does not prove the route works. **Skip** keeps the saved number without running the test.

![Validate your SIP trunk dialog offering a DialNexa test number or a number of your choice, with Skip and Dial actions.](https://mintcdn.com/dialnexa/2fhS3K-HnbB7OWax/images/documentation/screenshots/sip-trunk-validation.png?fit=max\&auto=format\&n=2fhS3K-HnbB7OWax\&q=85\&s=5fa7f1c1e08e90c2f6945540902ce0dc)

1. Select DialNexa's test number when one is offered for the trunk's country, or enter a number you are authorized to call in E.164 format.
2. Choose **Dial**. This places a real outbound probe through your trunk and hangs up when ringing is detected.
3. On success, choose **Save** to close the result. The probe checks reachability, not agent conversation quality or two-way audio.
4. If validation fails, read the provider response. Check credentials for authentication errors, the termination URI for reachability errors, and carrier destination permissions for blocked calls. A cross-country destination can fail even when the trunk configuration is correct.

After failure, **Save anyway** retains the number. **Delete number** removes it. **Edit configuration** removes the saved failed configuration and reopens the linking form with its values, so review the form and save again after correcting it. Check the Phone Numbers list before repeating an uncertain save or deletion.

Finish with the controlled inbound and outbound conversation tests below before using the trunk for production calls.

## SIP Audio Review

SIP-routed calls use phone-grade audio. The exact quality depends on your carrier and trunk configuration.

## SIP Failures Before Ringing

| End reason | What to check | Automatic retry |
| - | - | - |
| `sip_auth_failed` | SIP username and password, carrier outbound permissions, and the selected trunk. | No |
| `sip_trunk_unreachable` | Termination URI, DNS, firewall, carrier reachability, and whether the SIP endpoint is online. | No |

Both reasons produce a failed call before a useful conversation starts. Correct the route, then place a new test call. Repeated retries without a configuration change are unlikely to help.

| Evidence | What to inspect |
| - | - |
| Recording | Noise, clipping, silence, echo, one-way audio, or bridge issues. SIP recordings use stereo where available: caller audio is the left channel and agent audio is the right channel. |
| Transcript | Whether Deepgram, Soniox, or Sarvam heard the caller correctly. |
| Call status | Whether the call connected, failed, ended early, or hit voicemail. |
| Transfer detail | Whether human handoff behaves differently through the trunk. |
| Audio Cache tab | Whether repeated speech was served quickly or missed cache. |

## Troubleshooting

> [accordion] Calls fail immediately
>
> Check phone number format, termination URI, authentication method, and whether the linked number is active. Username and password mode requires both credentials. IP mode rejects credentials and requires provider allowlisting.

> [accordion] Outbound works but inbound calls do not arrive
>
> For IP-authenticated trunks, confirm the provider's signaling IPs are configured for inbound endpoint matching and that the provider sends traffic to the expected DialNexa route.

> [accordion] Audio is one-way or distorted
>
> Review trunk media settings, recording, and transcript. Compare against a Plivo or web call if you need a baseline.

> [accordion] Wrong agent answers
>
> Phone number assignment controls the agent. Check the inbound and outbound agents on the number and their latest published versions.

> [accordion] Transfers behave differently
>
> Test transfer behavior through the exact trunk before production use.

## Verify The SIP Trunk

Place one controlled test call. Confirm that the correct agent answers, both sides can hear clearly, caller ID is expected, and Call History stores the correct direction, route, status, and recording.

## Related Reading

> [card] [Phone Numbers](https://dialnexa.com/docs/calls/phone-numbers.md)
>
> Manage number status and assignments.

> [card] [Audio Quality](https://dialnexa.com/docs/voice-ai/background-noise-denoising-and-audio-quality.md)
>
> Review recording and transcript quality.

> [card] [Call Transfer](https://dialnexa.com/docs/calls/call-transfer.md)
>
> Test handoffs through the trunk.

> [card] [Call History](https://dialnexa.com/docs/monitoring/call-history.md)
>
> Audit SIP-routed calls.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.