Create trunk origination URI
create_origination_uriAdds a public SIP destination URI to a Vobiz trunk for outbound call routing, with priority levels for primary and failover targets. Returns the new URI ID.
Instructions
Add a SIP destination (origination URI) such as sip:sbc.example.com:5060 that Vobiz trunks route outbound calls to. Use priority 1 for the primary and 2+ for failover; attach it to a trunk with update_sip_trunk (primary_uri_uuid or fallback_uri_uuid). The host must be a public FQDN or IPv4 address; private, loopback and .local targets are rejected. Weight (Vobiz default 10) and transport are set in the Vobiz console. Returns the URI's id. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true; every call adds another URI, so a retry after a timeout should first check list_origination_uris.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label of 1-255 characters, e.g. Primary SBC. Returned by Vobiz as `description`. | |
| confirm | Yes | Must be true, set only after the user explicitly approved: adding this outbound SIP destination. | |
| sip_uri | Yes | SIP destination: sip:host, sip:host:port, sip:user@host or sip:user@host:port, e.g. sip:sbc.example.com:5060 (port 1-65535, host public). Returned by Vobiz as `uri`. | |
| priority | Yes | Routing priority, 1-1000: lower is tried first (1 = primary, 2+ = failover). URIs sharing a priority split traffic by weight. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True on success. On a failure the result is isError with ok: false plus `error` (kind), `message`, `retryable` and sometimes `http_status`. | |
| uri_id | No | UUID of the new URI: use it as primary_uri_uuid or fallback_uri_uuid on a trunk. Null if Vobiz did not return one. | |
| created | No | True when the record was created by this call. | |
| http_status | No | HTTP status Vobiz answered with. | |
| origination_uri | No | The URI as Vobiz returned it. |