# Your own carrier

Use this when the numbers already live at your carrier or PBX. **Telephony - Trunks - + Add Trunk** opens the **New SIP Trunk** drawer. The agent's **Channels - Telephony** tab can open the same flow with **+ Add SIP trunk**, then picks which numbers this agent answers.

A trunk without numbers still leaves the agent silent. A trunk with numbers and no default (and no inbound route) leaves callers ringing. Both sides have to be done.

  <ShotPlaceholder
    src="/assets/telephony/trunks.png"
    name="byoc-trunks"
    alt="Telephony Trunks with Add Trunk"
    capture="Telephony Trunks."
  />

## Which trunk type

The drawer asks **How do you connect?** Pick the shape that matches the other side - the type cannot change after save.

- **VOIP provider** — Connect numbers from carriers like Yuboto, Telnyx, or Twilio. **Provider** can be a named preset or **Custom / manual setup** (presets prefill host, port, transport).
- **Public IP PBX** — Voice Logica signs in on a PBX with a public IP reachable from the internet.
- **Local IP PBX** — The PBX is on a LAN. Download the connector, wait until it is live, then enter the PBX IP. See [Edge device](https://docs.voicelogica.ai/telephony/edge-device/).
- **Incoming PBX** — Their phone system registers here so you can take their calls.
- **Microsoft Teams** — Teams Phone calls reach your AI agent. Pair it in Microsoft 365 after the trunk exists.

  <ShotPlaceholder
    src="/assets/telephony/your-own-carrier-form.png"
    name="your-own-carrier-form"
    alt="New SIP Trunk drawer How do you connect"
    capture="New SIP Trunk type selection."
  />

The drawer has **General** and **Advanced** tabs. On General, after you pick a type, fill at least:

- **Trunk Name** (required) — Name it after the carrier, not "SIP Trunk 1".
- **Provider** — Preset or Custom / manual setup.
- **Host / IP Address** (required) — Where to register or send SIP.
- **Default Phone Number** — Optional default DID on the trunk.
- **Username** (required) — SIP username.
- **Login (Authorization ID)** — Authorization ID when the provider splits login from username.
- **Password** (required) — SIP password.
- **AI agent / Destination** — Where unrouted calls land (this agent, a user, group, and so on).
- **Max Channels** — Optional channel cap.
- **Trunk enabled** — Leave on when you are ready for registration.

**Advanced** (only if the provider asked): Connection type, Port, Transport, SIP Contact host, Domain, From Domain, Outbound Proxy, Allowed RTP source IPs.

Before the first REGISTER, whitelist Voice Logica in the far-end SIP / firewall when the provider requires it (IPs are shown in product settings).

## Default destination - where unrouted calls land

A trunk without a destination leaves callers ringing when no inbound override exists. Set destination to this AI agent (or a user / group / conference / external number).

On the agent tab, sending unrouted calls to this agent does the same job from the other side.

## First setup - trunk, numbers, then this agent

1. **Whitelist required IPs** on the carrier / PBX when asked.

2. **Telephony - Trunks - + Add Trunk** (or agent **+ Add SIP trunk**)

   Pick the type, fill General fields, set destination = this agent, enable, **Create Trunk**.

3. **Manage numbers**

   Add the DIDs on the trunk. A trunk with no numbers cannot connect anything on the agent tab.

4. **Wait until registration shows online** (provider trunks)

   Use SIP logs on the row if it stays offline.

5. **Agent - Channels - Telephony**

   Connect numbers to this agent, or send unrouted calls here if every number on the trunk should land on this agent.

6. **Call in from a real phone**

   Open **Calls**. Do not add [inbound routes](https://docs.voicelogica.ai/telephony/routing/) until a second number needs a different landing.

> **Trunk first, then the agent tab:** If the agent tab says **No SIP trunk yet**, that is expected. Create the trunk, add numbers, then connect.
## Microsoft Teams

1. **Add Trunk** / **Add SIP trunk** and pick **Microsoft Teams**.
2. Name it and create it. Your dedicated SBC address appears after create.
3. Follow **How to connect Microsoft Teams** in the trunk settings (Microsoft 365 checklist).

## Troubleshooting

**Registration stays offline**

Wrong credentials, the far end has not allowed our IPs, or the trunk is disabled. Check SIP logs on the trunk row.

**Connect a number is missing / the drawer is empty**

The trunk has no DIDs, or it is disabled. Manage numbers first.

**The trunk is up but the wrong agent answers**

The trunk default or an [inbound override](https://docs.voicelogica.ai/telephony/routing/) points elsewhere. Fix the default, or connect the number on the agent you want - one agent per number.

## Next Steps

[Routing](https://docs.voicelogica.ai/telephony/routing/) - when one DID should not follow the trunk default.  
[Call settings](https://docs.voicelogica.ai/telephony/call-settings/) - Incoming PBX needs the company SIP domain.  
[Get a number](https://docs.voicelogica.ai/telephony/) - overview of test line vs production.  
[Voice Logica numbers](https://docs.voicelogica.ai/telephony/voice-logica-numbers/) - when your plan shows free DID controls.  
[Cosmote, Vodafone and Nova](https://docs.voicelogica.ai/telephony/greek-carriers/) - which option fits a Greek business number.
