Create a trunk endpoint
trunk_create_endpointAdd a SIP endpoint to an owned trunk using structured host/port/transport or a raw URI. Handles deferral warnings when Kamailio sync is pending.
Instructions
Add a dispatcher endpoint (SIP destination) to an owned trunk, either as structured host/port/transport or as a raw_uri. Returns HTTP 207 with a warning when the Kamailio sync is deferred. Step-up MFA required. Errors: NO_ACTIVE_CUSTOMER, INVALID_ID, NOT_FOUND, INVALID_PAYLOAD, VALIDATION_ERROR, INTERNAL_ERROR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | SIP destination hostname or IP (structured form; mutually alternative to raw_uri) | |
| port | No | SIP destination port (e.g. 5060) | |
| weight | No | Load-balancing weight among endpoints of the same priority | |
| enabled | No | Whether the endpoint is active in the dispatcher | |
| raw_uri | No | Raw SIP URI (alternative to structured host/port/transport, e.g. sip:pbx.example.com:5061;transport=tls) | |
| priority | No | Failover priority (lower is tried first) | |
| trunk_id | Yes | Trunk group UUID (find it with trunk_list) | |
| transport | No | SIP transport protocol | |
| description | No | Free-text label for the endpoint |