> For the complete documentation index, see [llms.txt](https://dataqueue.gitbook.io/voicehub-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk.md).

# SIP Trunking

A **SIP trunk** connects your carrier or SIP provider to VoiceHub so calls flow into your AI voice agents — inbound and outbound — while you keep your own numbers and provider.

## Pick your scenario

Your setup is defined by **how your trunk authenticates** (SIP registration, or IP / username & password) and **how it connects** (public internet or private IPSec VPN). Open the matching guide:

|                              | **Public** (internet)                                                                        | **Private** (IPSec VPN)                                                                        |
| ---------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| **IP / Username & Password** | [Public — IP / Username & Password](/voicehub-docs/integrations/sip-trunk/public-ip-auth.md) | [Private — IP / Username & Password](/voicehub-docs/integrations/sip-trunk/private-ip-auth.md) |
| **SIP Registration**         | [Public — SIP Registration](/voicehub-docs/integrations/sip-trunk/public-registration.md)    | [Private — SIP Registration](/voicehub-docs/integrations/sip-trunk/private-registration.md)    |

```mermaid
flowchart TD
    s(["New SIP trunk"]) --> a{"How does your trunk<br/>authenticate?"}
    a -->|"IP allowlist or username/password<br/>(no registration)"| b{"Connectivity?"}
    a -->|"SIP registration (REGISTER)"| c{"Connectivity?"}
    b -->|"Public"| d1["public-ip-auth.md"]
    b -->|"Private VPN"| d3["private-ip-auth.md"]
    c -->|"Public"| d2["public-registration.md"]
    c -->|"Private VPN"| d4["private-registration.md"]
```

## VoiceHub SIP endpoints (reference)

The endpoint you use depends on your scenario:

| Scenario                                 | VoiceHub endpoint |
| ---------------------------------------- | ----------------- |
| Public — IP / Username & Password        | `34.18.178.48`    |
| Public — SIP Registration                | `34.18.158.117`   |
| Private (VPN) — IP / Username & Password | `10.50.0.9`       |
| Private (VPN) — SIP Registration         | `10.33.0.3`       |

| Purpose                 | Port                  |
| ----------------------- | --------------------- |
| SIP signaling           | **5060** (UDP/TCP)    |
| SIP over TLS (optional) | **5061** (TCP)        |
| RTP media               | **10000–20000** (UDP) |

* **Codecs:** G.711 — `PCMU` (µ-law) / `PCMA` (A-law); `G.722` optional.
* **DTMF:** RFC 2833 / RFC 4733 (`telephone-event`). Voice only (no fax).

## After choosing your scenario

Each guide ends by adding the trunk in the dashboard — [**Add Your SIP Trunk**](/voicehub-docs/integrations/sip-trunk/sip-trunk-setup.md) — then configuring [inbound calls](/voicehub-docs/integrations/sip-trunk/configuring-inbound-calls.md) and [outbound calls](/voicehub-docs/integrations/sip-trunk/configuring-outbound-calls.md).
