Skip to main content
PATCH
Update a SIP trunk

Authorizations

Authorization
string
header
required

Tenant API key (vdx_live_…) as Authorization: Bearer.

Path Parameters

id
string
required

Body

application/json
allowedIps
string[]
declaredNumbers
string[]
dialRules
object[]

Replaces the trunk's dial rules when sent; [] clears them.

Maximum array length: 10
callerIdRules
object[]

Rewrites the caller ID a direct gateway is sent, by the same rules as dialRules; replaces them when sent, [] clears them. A rule set that would present two of the trunk's numbers identically, and any rule on a registered gateway or on a carrier-provisioned trunk, is refused with 400. The same checks run when numbers are added or the connection mode changes.

Maximum array length: 10

Response

Updated on the gateway and stored.

Credentials are never echoed — only the username and the URI to point a PBX at.

id
string
Example:

"trunk-1a2b3c4d"

name
string
inbound
object
outbound
object | null
declaredNumbers
string[]
livekitInboundId
string
livekitOutboundId
string
cellId
string

Which cell's gateway holds the LiveKit trunks.

sipUri
string
Example:

"sip:sip.example:5060"