Update a SIP trunk
Updates the SIP trunk identified by id. Only the provided fields are changed. On trial accounts, every update also applies the trial limits: a call_limit of at most 300 seconds (300 when omitted) and one concurrent call.
Authorizations
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Path Parameters
The unique ID of the SIP trunk.
3107
Body
User-defined name of the SIP trunk
"My trunk"
Password set for the SIP trunk. A strong password helps keep the trunk secure.
"4r=h;EaCB85QNtr2"
For SIP trunks with IP authentication, the SIP endpoint public static IP address. Wavix authenticates all SIP traffic originating from this IP address. Ignored when the trunk already has a host request that is pending or approved. Not supported on trial accounts.
Caller ID associated with the SIP trunk. Must be an active or verified number on the account.
"13132847320"
Indicates whether any active or verified phone number on the account can be used as the Caller ID for the SIP trunk. Setting it to true clears the trunk's callerid; on a trunk with Caller ID passthrough (passthrough) enabled, true is ignored.
Indicates whether SIP trunk registration is allowed from only specific public static IP addresses. It can be true only when the trunk has at least one allowed IP address, either already stored or sent in allowed_ips.
false
Public static IP addresses to add to the list allowed to register with the SIP trunk. Addresses already on the list are kept.
Indicates whether inbound calls include dialed number information in the To header of SIP INVITE requests
true
Indicates whether a maximum call duration limit is enforced for the SIP trunk
true
Maximum call duration for the SIP trunk, in seconds. Must not exceed the maximum duration set for the account. Ignored when call_restrict is false.
3600
Indicates if the max cost limit for an outbound call limit is activated for the SIP trunk.
true
Maximum cost for an outbound call, in USD
0.18
Indicates whether a limit on the number of concurrent outbound calls is enforced for the SIP trunk
false
Maximum number of concurrent outbound calls for the SIP trunk. Must not exceed the outbound channel capacity set for the account. Ignored when channels_restrict is false.
2
Indicates whether a custom dial plan is activated for the SIP trunk
true
Digits to automatically prepend to each dialed phone number
"1"
Number of leading digits to automatically remove from each dialed phone number
Indicates whether outbound call recording is enabled for the SIP trunk
true
Indicates whether automatic call transcription is enabled for the SIP trunk.
Available for Flex Pro customers only.
true
Transcriptions will be generated for calls that meet or exceed the specified minimal call duration threshold, in seconds.
Available for Flex Pro customers only.
10
Indicates whether automatic voicemail detection is enabled for the SIP trunk.
Available for Flex Pro customers only.
true
Indicates whether SRTP media encryption is enabled for the SIP trunk.
true
Response
Returns the updated SIP trunk.
Unique identifier of the SIP trunk on the platform
293
System-generated login name of the SIP trunk
"67758"
Caller ID configured on the SIP trunk. Contains null if no Caller ID is set, or an empty string if multiple Caller IDs are allowed.
"12345678900"
User-defined name of the SIP trunk
"My trunk"
Date and time the SIP trunk was created
"2023-05-16T17:13:25.000Z"
Indicates whether IP restriction must be enabled on the SIP trunk
false
Indicates if the max number of concurrent outbound calls limit is activated for the SIP trunk.
false
A maximum number of concurrent outbound calls placed via the SIP trunk. Cannot be higher than the outbound channel capacity configured on the account.
2
Indicates if the max cost limit for an outbound call limit is activated for the SIP trunk.
true
A maximum cost of an outbound call, in USD.
"0.18"
Indicates if maximum call duration limit is activated for the SIP trunk.
false
A maximum call duration for the SIP trunk, in seconds. Cannot be higher than the max call duration set for the account.
3600
Indicates if inbound calls carry dialed number information in the 'To' header of SIP Invites
true
Indicates if a custom dial plan is activated for the SIP trunk.
true
Leading digits to be added before the dialed phone numbers.
"1"
Leading digits to be deleted from the dialed phone numbers.
Indicates if outbound call recording is enabled on the SIP trunk. Available for Flex Pro customers only.
true
Indicates if automatic voicemail detection is enabled on the SIP trunk. Available for Flex Pro customers only.
true
Indicates if automatic call transcription is enabled on the SIP trunk. Available for Flex Pro customers only.
false
Transcriptions will be generated for calls that meet or exceed the specified minimal call duration threshold, in seconds
10
Registration host for the SIP trunk. dynamic for credential-based registration, or a public static IP address for IP authentication.
"dynamic"
Indicates whether any active or verified phone number on the account can be used as the Caller ID for the SIP trunk.
true
Indicates whether SRTP media encryption is enabled for the SIP trunk.
true
Indicates whether Caller ID passthrough is enabled.
true
Static authentication token for the SIP trunk.
"123easwqe321132"