# Self-hosted SIP server with LiveKit Cloud – is this supported?

**URL:** <https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869>\
**Category:** Self Hosting\
**Tags:** sip-other-provider, sip-trunking\
**Created:** [April 15, 2026, 11:05am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869 "2026-04-15T11:05:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/aman/32/287_2.png) [@Aman](https://community.livekit.io/u/Aman)\
**Post date:** [April 15, 2026, 11:05am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869/1 "2026-04-15T11:05:44Z")

</div>

We are trying to understand whether a self-hosted SIP server can work with the LiveKit Cloud dashboard.

Our setup:

- We have already self-hosted a SIP server using Docker Compose.

- In our configuration (config.yaml / docker-compose.yaml), we provided:

- We opened ports 5060 and 5061 (and temporarily all ports for testing).

What we tested:

- We successfully tested SIP integration using Plivo with the LiveKit Cloud SIP server, and it worked as expected.

- However, when switching to our self-hosted SIP server, all calls result in a **busy line**.

Our question:

- Is it actually supported to use a self-hosted SIP server with LiveKit Cloud?

- If yes, are there any additional configuration steps required that we might be missing?

We’d appreciate any guidance on:

- Required SIP configuration for LiveKit Cloud

- Networking/firewall considerations

- Any known limitations when mixing self-hosted SIP with LiveKit Cloud

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Aman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/aman/32/287_2.png) [@Aman](https://community.livekit.io/u/Aman)\
**Post date:** [April 16, 2026, 9:01am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869/2 "2026-04-16T09:01:35Z")

</div>

@darryncampbell can you please give us a answer on this.

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [April 16, 2026, 9:37am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869/3 "2026-04-16T09:37:25Z")

</div>

Looks like this question also came up last year and the answer was no:

> <https://github.com/livekit/sip/issues/437>
>
> I'm trying to use a self hosted version of the sip server to connect to livekit …cloud server. Is that supported ? 
> 
> The doc says "To run against a local LiveKit server, a redis server must be running locally. All servers must be configured to communicate over localhost". Yet it does not mention running the sip server against LiveKit Cloud servers.
> 
> I tried using my cloud auth api\_key, api\_secret and ws\_url but it does not seem to connect.

Why are you looking to deploy with this configuration?

---

<div class="post-metadata">

**Author:** ![Aman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/aman/32/287_2.png) [@Aman](https://community.livekit.io/u/Aman)\
**Post date:** [April 16, 2026, 9:41am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869/4 "2026-04-16T09:41:25Z")

</div>

@darryncampbell we just figured it out, Self Host SIP Server is working with Livekit cloud dashboard. We had problem with our SIP provider.

---

<div class="post-metadata">

**Author:** ![Rajan\_kumar](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/rajan_kumar/32/834_2.png) [@Rajan\_kumar](https://community.livekit.io/u/Rajan_kumar)\
**Post date:** [April 17, 2026, 8:11am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869/5 "2026-04-17T08:11:15Z")

</div>

Hello @darryncampbell @Aman misunderstood this.

This issue is still not resolved — we’re continuing to face the same problem. Here’s a clear breakdown of what we’ve implemented:

1. We are using **Plivo** as our telephony provider for an Indian number. On Plivo, we configured an inbound trunk by pointing it to our self-hosted SIP server.

2. On our self-hosted SIP server, we are using our LiveKit Cloud credentials (WSS URL, API key, and secret) to connect.

3. On LiveKit Cloud, we have configured both the inbound trunk and dispatch rule.

**Inbound trunk configuration:**

```auto
{
  "sipTrunkId": "ST_KeVUwXXXXX",
  "name": "Plivio_trunk_test",
  "numbers": ["+9180XXXXXX75"],
  "allowedAddresses": ["0.0.0.0/0"]
}

```

**Dispatch rule configuration:**

```auto
{
  "sipDispatchRuleId": "SDR_earm6BGmXXXX",
  "rule": {
    "dispatchRuleIndividual": {
      "roomPrefix": "call-"
    }
  },
  "trunkIds": ["ST_KeVUwCtXXXXXX"],
  "name": "Trunk Dispatch Rule",
  "attributes": {
    "agent": "69XXXXXXXXXXXXb"
  },
  "roomConfig": {}
}

```

1. Current behavior:  
When we call the Plivo number, the phone rings but the call is never answered.

**Expected behavior:**  
We expected the call to automatically route to LiveKit (via our SIP setup), reach our agent, and be handled without manual intervention.

Our primary requirement for using a self-hosted SIP server is region-specific handling.

Could someone help clarify:

- Why the call is not being picked up?

- Whether our architecture/setup is missing anything?

- The correct approach to achieve automatic call handling with this setup?

Thanks in advance.  
Rajan

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [April 17, 2026, 10:23am UTC](https://community.livekit.io/t/self-hosted-sip-server-with-livekit-cloud-is-this-supported/869/6 "2026-04-17T10:23:15Z")

</div>

Hi @Rajan_kumar , per that GitHub issue I shared above, this is not a supported configuration. The response from DZ here, [Running local sip server with livekit cloud server · Issue #437 · livekit/sip · GitHub](https://github.com/livekit/sip/issues/437#issuecomment-3217338990), can be considered authoritative.

You can either:

- Use self-hosted LiveKit with your self-hosted SIP server
- User LiveKit Cloud with LiveKit SIP

> Our primary requirement for using a self-hosted SIP server is region-specific handling.

The SIP server within LiveKit cloud offers a regional endpoint: [Region pinning for telephony | LiveKit Documentation](https://docs.livekit.io/telephony/features/region-pinning/) (available on all plans).

There was a very good recent blog about deploying voice agents in India, see the ‘Telephony for voice agents’ section:

> **[Building Performant Voice Agents in India](https://livekit.com/blog/building-performant-voice-agents-india)**
>
> Complete guide to building and running high performance voice agents in India.

I also did a more generic blog about LiveKit region pinning as there are multiple pieces:

> **[Checklist for Regional Deployments](https://livekit.com/blog/checklist-for-regional-deployments)**
>
> What to consider if you need a region-specific deployment for regulatory or compliance reasons.
