> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leamout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SIP trunks

> Create BYOC or managed trunks and configure physical SIP endpoints.

A trunk is a routable SIP service. The current trunk model supports `byoc` and `managed` provisioning modes.

For BYOC, `carrier_connection_id` identifies the customer carrier relationship. A trunk also has a name, direction, and status.

Each trunk can have multiple physical endpoints with:

```text theme={null}
host
port
transport
direction
priority
weight
enabled
```

Leamout tracks endpoint health, consecutive failures, last response code, latency, error state, and cooldown time. Routing uses those fields to exclude unhealthy endpoints and select among eligible endpoints by priority and weight.

Credentials for managed trunk provisioning are returned only when appropriate; do not persist plaintext SIP credentials in logs or application databases.
