Path parameters
-
The unique string that we created to identify the OriginationUrl resource to update.
Body
-
CnamLookupEnabled boolean
Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See CNAM Lookups for more information.
-
DisasterRecoveryMethod string(http-method)
The HTTP method we should use to call the
disaster_recovery_url
. Can be:GET
orPOST
.Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
. -
DisasterRecoveryUrl string(uri)
The URL we should call using the
disaster_recovery_method
if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See Disaster Recovery for more information. -
DomainName string
The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and
-
and must end withpstn.twilio.com
. See Termination Settings for more information. -
FriendlyName string
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
Secure boolean
Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See Secure Trunking for more information.
-
TransferCallerId string
Caller Id for transfer target. Can be:
from-transferee
(default) orfrom-transferor
.Values are
from-transferee
orfrom-transferor
. -
TransferMode string
The call transfer settings for the trunk. Can be:
enable-all
,sip-only
anddisable-all
. See Transfer for more information.Values are
disable-all
,enable-all
, orsip-only
.
curl \
-X POST https://trunking.twilio.com/v1/Trunks/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'CnamLookupEnabled=true&DisasterRecoveryMethod=HEAD&DisasterRecoveryUrl=https%3A%2F%2Fexample.com&DomainName=string&FriendlyName=string&Secure=true&TransferCallerId=from-transferee&TransferMode=disable-all'
{
"CnamLookupEnabled": true,
"DisasterRecoveryMethod": "HEAD",
"DisasterRecoveryUrl": "https://example.com",
"DomainName": "string",
"FriendlyName": "string",
"Secure": true,
"TransferCallerId": "from-transferee",
"TransferMode": "disable-all"
}
{
"CnamLookupEnabled": true,
"DisasterRecoveryMethod": "HEAD",
"DisasterRecoveryUrl": "https://example.com",
"DomainName": "string",
"FriendlyName": "string",
"Secure": true,
"TransferCallerId": "from-transferee",
"TransferMode": "disable-all"
}
{
"account_sid": "string",
"auth_type": "string",
"auth_type_set": [
"string"
],
"cnam_lookup_enabled": true,
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"disaster_recovery_method": "HEAD",
"disaster_recovery_url": "https://example.com",
"domain_name": "string",
"friendly_name": "string",
"links": {},
"secure": true,
"sid": "string",
"transfer_caller_id": "from-transferee",
"transfer_mode": "disable-all",
"url": "https://example.com"
}
{
"account_sid": "string",
"auth_type": "string",
"auth_type_set": [
"string"
],
"cnam_lookup_enabled": true,
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"disaster_recovery_method": "HEAD",
"disaster_recovery_url": "https://example.com",
"domain_name": "string",
"friendly_name": "string",
"links": {},
"secure": true,
"sid": "string",
"transfer_caller_id": "from-transferee",
"transfer_mode": "disable-all",
"url": "https://example.com"
}