> 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/public-ip-auth.md). Agents can also search and read this documentation through its [MCP server](https://dataqueue.gitbook.io/voicehub-docs/~gitbook/mcp).

# Public — IP / Username & Password

Connect a public-internet SIP trunk to VoiceHub using IP authentication or a static username & password — no SIP registration.

**Use this when:** your trunk connects over the **public internet** and authenticates **without SIP registration** — either by **source IP** (IP authentication) or by a **static username & password** (SIP digest sent per call, no `REGISTER`).

Other scenarios: [Public — SIP Registration](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk/public-registration.md) · [Private — IP / Username & Password](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk/private-ip-auth.md) · [index & ports](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk.md).

## How it connects

```mermaid
flowchart LR
    sbc["Your SBC<br/>fixed public IP"]
    dq["VoiceHub endpoint<br/>34.18.178.48"]
    ai["AI voice agent"]
    sbc -->|"SIP 5060 + RTP 10000-20000"| dq --> ai
```

## 1. What to exchange

| VoiceHub gives you                                      | You give VoiceHub                       |
| ------------------------------------------------------- | --------------------------------------- |
| Endpoint `34.18.178.48` + ports (5060, RTP 10000–20000) | Your SBC public IP(s) to allowlist      |
| Codecs G.711; DTMF RFC 2833                             | DID number(s)                           |
| SIP username & password *(if you use credential auth)*  | Whether you use IP or username/password |

## 2. Connectivity (public internet)

1. On your provider/SBC, route inbound SIP calls to **`34.18.178.48`** (port 5060).
2. Allow `34.18.178.48` through your firewall for **SIP 5060** and **RTP 10000–20000**, both directions.
3. Send VoiceHub your SBC public IP(s) so we can allowlist them.

## 3. Authentication

* **IP authentication** – no credentials; we authorize each other by source IP. Make sure your SBC sends from the IP you registered with us.
* **Username & password (no registration)** – set the SIP username & password exchanged with VoiceHub on your trunk. Calls authenticate per‑INVITE with SIP digest; **no `REGISTER`** is sent.

## 4. Add your trunk in the dashboard

In **Channels → SIP Trunking → Add SIP Trunk**, enter your **Hostname** and **Phone Number**. For credential auth, also fill **Auth Username / Password**; leave them empty for IP authentication. Full steps: [**Add Your SIP Trunk**](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk/sip-trunk-setup.md).

## 5. Configure calls

Finish with [Configure inbound calls](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk/configuring-inbound-calls.md) and [Configure outbound calls](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk/configuring-outbound-calls.md).

## Test & troubleshoot

1. A SIP `OPTIONS` ping to `34.18.178.48:5060` should be answered.
2. Inbound: dial your DID → the agent answers with two‑way audio.
3. Outbound: VoiceHub places a test call → rings with the agreed caller ID.

| Symptom                       | Fix                                                                                                                        |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `403 Forbidden`               | IP not allowlisted (either side) — confirm both allowlists, or credentials if using username/password.                     |
| No audio                      | Open RTP `10000–20000` (UDP) end‑to‑end.                                                                                   |
| Carrier requires registration | Use [Public — SIP Registration](https://dataqueue.gitbook.io/voicehub-docs/integrations/sip-trunk/public-registration.md). |
