Skip to main content
PUT
Update an inbound SIP trunk

Authorizations

Authorization
string
header
required

Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.

Path Parameters

projectId
string
required

Project id

id
string
required

Inbound SIP trunk id

Body

application/json

Send at least one field; the others keep their value. Fields not listed here are ignored.

name
string
Required string length: 1 - 120
whitelist_cidrs
string[]

The whole list of IP ranges, replacing the stored one. Catch-all ranges are refused.

Minimum array length: 1
status
enum<string>

inactive deactivates the trunk; it stops taking calls. active on a trunk that is not registered activates it (409 when no number is bound to it).

Available options:
active,
inactive
secure_media
enum<string>
Available options:
disabled,
enabled,
required
sip_headers
object[]

The SIP headers the trunk passes to the agent as sip.* call variables. On update, the list you send replaces the stored one.

Maximum array length: 10

Response

The updated trunk.

sip_trunk
object
required

An inbound SIP trunk: calls from your SIP infrastructure, from the IP ranges it allows, to the phone numbers bound to it, are answered by Clarity agents.