OpenAPI 3.1.0MITraw.githubusercontent.com2026-08-1710873307.6 KB

4efc843fe56f

SIP Trunks

Create an outbound SIP trunk (REGISTER or static peering)

Creates a typed SIP trunk. For type: "sip_register", VoiceBlender begins REGISTERing to the supplied registrar URI with digest auth, refreshes before expiry, and routes inbound INVITEs that arrive on that peer's socket plus outbound INVITEs whose from matches the AOR through the trunk. Set sip_register.outbound_proxy to send both the REGISTER and those INVITEs via a next-hop proxy instead of straight at the registrar; the Request-URI and digest authentication still target registrar_uri. It defaults to SIP_OUTBOUND_PROXY and is resolved at creation time, so the trunk snapshot reports the hop actually in effect. For type: "ip_ip", returns 501 (reserved, not yet implemented).

post/sip/trunks

Request body

type'sip_register' | 'ip_ip' required

Trunk type discriminator. Only sip_register is implemented today; ip_ip is reserved and returns 501.

app_idstring

Application identifier carried through to every event emitted by this trunk.

Response

Trunk accepted; REGISTER runs asynchronously

idstring required
typestring required
statusstring required