LiveKit docs › Telephony › Get Started › Provider-specific quickstarts › didlogic

---

# Create and configure a didlogic SIP trunk

> Step-by-step instructions for configuring inbound and outbound calls using didlogic and LiveKit.

## Prerequisites

The following are required to complete the steps in this guide:

- A [didlogic account](https://didlogic.com/get-started?utm_source=livekit_docs).
- A [purchased phone number](https://app.didlogic.com/app/purchases) from didlogic.
- A [SIP account](https://app.didlogic.com/sipaccounts) in didlogic.
- A project on [LiveKit Cloud](https://cloud.livekit.io/).

## Accepting inbound calls

Complete the following steps to accept inbound calls with didlogic and LiveKit.

### Step 1: Configure inbound call routing in didlogic

To receive calls with didlogic and LiveKit, configure your didlogic number to route calls to the LiveKit SIP gateway.

For this step, use your LiveKit [SIP endpoint](https://docs.livekit.io/telephony/start/sip-trunk-setup.md#sip-endpoint). This is your LiveKit SIP URI without the `sip:` prefix. You can find your SIP URI on the [Project settings](https://cloud.livekit.io/projects/p_/settings/project) page.

1. Sign in to your [didlogic account](https://app.didlogic.com).
2. Navigate to **Numbers** → **Purchased**.
3. Select **Edit** on the phone number you are integrating with LiveKit.
4. For **Forward to**, select **SIP URI**.
5. Enter the destination in the following format: `+[number]@[LiveKit SIP endpoint];transport=tcp`, for example: `+15105550100@vjnxecm0tjk.sip.livekit.cloud;transport=tcp`.

   > ℹ️ **SIP endpoint format**
   > 
   > Use the host portion of your LiveKit SIP URI, excluding the `sip:` prefix.
6. Select **Add**. If multiple destinations are configured, make sure the LiveKit destination is at the top of the list.

### Step 2: Create an inbound trunk in LiveKit

An [inbound trunk](https://docs.livekit.io/telephony/accepting-calls/inbound-trunk.md) allows you to accept incoming phone calls to your didlogic phone number. To create an inbound trunk in LiveKit, use the following steps:

1. Sign in to [LiveKit Cloud](https://cloud.livekit.io/).
2. Select **Telephony** → [**SIP trunks**](https://cloud.livekit.io/projects/p_/telephony/trunks).
3. Select the **+ Create new trunk** button.
4. For **Trunk direction**, select **Inbound**.
5. Complete the following fields:
   - **Trunk name**: Enter a descriptive name for your trunk.
   - **Numbers**: Enter your didlogic phone number in E.164 format, or enter `*` (wildcard) to allow the trunk to handle calls from any assigned number.
   - **Media encryption (SRTP)**: Configure based on your security requirements.
   - **Include headers**: Optionally attach SIP headers to participant attributes.
6. Select **Create**.

### Step 3: Create a dispatch rule in LiveKit

In addition to an inbound trunk, you need a [dispatch rule](https://docs.livekit.io/telephony/accepting-calls/dispatch-rule.md) to determine how callers are dispatched to LiveKit rooms.

Create a dispatch rule using the following steps:

1. Navigate to the **Telephony** → [**Dispatch rules**](https://cloud.livekit.io/projects/p_/telephony/dispatch) page.
2. Select the **+ Create new dispatch rule** button.
3. Complete the **Rule name** and **Room name** fields.
4. Select **Match trunks** and select the inbound trunk you created in the previous step.

> ℹ️ **Additional options**
> 
> Selecting trunks to match a dispatch rule is optional. By default, a dispatch rule applies to all inbound calls for your LiveKit project.
> 
> For more information on **Rule type**, see [SIP dispatch rule](https://docs.livekit.io/telephony/accepting-calls/dispatch-rule.md).

### Test inbound calls

After you complete the setup steps, start a voice AI agent and call your didlogic phone number. Your agent should answer the call. If you don't have an agent, see the [Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md) to create one.

## Making outbound calls

Complete the following steps to make outbound calls using LiveKit and didlogic.

### Step 1: Create an outbound trunk in LiveKit

To allow LiveKit to initiate outbound calls through the didlogic network, create an outbound trunk in LiveKit using your didlogic SIP credentials:

1. Sign in to [LiveKit Cloud](https://cloud.livekit.io/).
2. Select **Telephony** → [**SIP trunks**](https://cloud.livekit.io/projects/p_/telephony/trunks).
3. Select the **+ Create new trunk** button.
4. For **Trunk direction**, select **Outbound**.
5. Configure the outbound trunk with the following settings:
   - **Address**: Enter a [didlogic SIP gateway](https://docs.didlogic.com/docs/guides/getting-started/outbound-calling#our-sip-gateways) (e.g., `sip.nl.didlogic.net`).
   - **Numbers**: Enter your purchased didlogic phone number in E.164 format.
   - Select **Optional settings** and complete the following fields:
     - **Username**: Your 5-digit SIP login from didlogic.
     - **Password**: Your SIP account password.
6. Select **Create**.

> 💡 **Choose the nearest gateway**
> 
> Choose the didlogic SIP gateway closest to your region for optimal performance. Use the domain instead of the IP address, as the IP can change dynamically.

### Place an outbound call

Test your configuration by placing an outbound call with LiveKit using the `CreateSIPParticipant` API. To learn more, see [Creating a SIP participant](https://docs.livekit.io/telephony/making-calls/outbound-calls.md#creating-a-sip-participant).

## Troubleshooting

The following table lists common issues when integrating didlogic with LiveKit.

| Issue | Cause | Solution |
| --- | --- | --- |
| Call fails immediately | Invalid phone number formatting or destination setup. | Ensure the number is formatted in full [E.164](https://www.itu.int/rec/t-rec-e.164) format (e.g., `+15105550100`). Verify that the didlogic forwarding SIP URI destination is set as the top priority. |
| Unauthorized on outbound calls | Incorrect SIP credentials. | Verify that you are using your 5-digit SIP login (not your account login email) and the correct SIP password in the LiveKit outbound trunk settings. |
| 603 Declined response | This might occur when calling a destination with a per-minute rate higher than the max call rate set for your account. | Contact [didlogic support](https://app.didlogic.com/tickets/new) to request a change to your max call rate. |

For additional help, check the [call logs](https://cloud.livekit.io/projects/p_/telephony) in your LiveKit Cloud dashboard or contact [didlogic support](https://app.didlogic.com/tickets/new).

## Next steps

The following guides provide next steps for building your LiveKit telephony app.

- **[Voice AI quickstart](https://docs.livekit.io/agents/start/voice-ai.md)**: A quickstart guide to build a voice AI agent to answer incoming calls.

- **[Agents telephony integration](https://docs.livekit.io/agents/start/telephony.md)**: Learn how to receive and make calls with a voice AI agent

- **[Call forwarding using SIP REFER](https://docs.livekit.io/telephony/features/transfers/cold.md)**: How to forward calls to another number or SIP endpoint with SIP REFER.

- **[Agent-assisted warm transfer](https://docs.livekit.io/telephony/features/transfers/warm.md)**: A comprehensive guide to transferring calls using an AI agent to provide context.

- **[Secure trunking for SIP calls](https://docs.livekit.io/telephony/features/secure-trunking.md)**: How to enable secure trunking for LiveKit SIP.

- **[Region pinning for SIP](https://docs.livekit.io/telephony/features/region-pinning.md)**: Use region pinning to restrict calls to a specific region.

---

This document was rendered at 2026-11-23T02:03:17.073Z.
For the latest version of this document, see [https://docs.livekit.io/telephony/start/providers/didlogic.md](https://docs.livekit.io/telephony/start/providers/didlogic.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).