TrunkingV1Trunk

post/v1/Trunks

Response

Created

account_sidstring nullable

The SID of the Account that created the Trunk resource.

domain_namestring nullable

The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and - and must end with pstn.twilio.com. See Termination Settings for more information.

disaster_recovery_method'GET' | 'POST' http-method nullable

The HTTP method we use to call the disaster_recovery_url. Can be: GET or POST.

disaster_recovery_urlstring uri nullable

The URL we call using the disaster_recovery_method if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from this URL and execute the instructions like any other normal TwiML call. See Disaster Recovery for more information.

friendly_namestring nullable

The string that you assigned to describe the resource.

secureboolean nullable

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.

{"stackTrail":"components:schemas:trunking.v1.trunk:properties:recording","oasType":"schema","type":"unknown","description":"The recording settings for the trunk. Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to `record-from-ringing` or `record-from-answer`, all calls going through the trunk will be recorded. The only way to change recording parameters is on a sub-resource of a Trunk after it has been created. e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d'Mode=record-from-answer'`. See [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more information.","nullable":true}
transfer_mode'disable-all' | 'enable-all' | 'sip-only'

The call transfer settings for the trunk. Can be: enable-all, sip-only and disable-all. See Transfer for more information.

transfer_caller_id'from-transferee' | 'from-transferor'

Caller Id for transfer target. Can be: from-transferee (default) or from-transferor.

cnam_lookup_enabledboolean nullable

Whether Caller ID Name (CNAM) lookup is 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.

auth_typestring nullable

The types of authentication mapped to the domain. Can be: IP_ACL and CREDENTIAL_LIST. If both are mapped, the values are returned in a comma delimited list. If empty, the domain will not receive any traffic.

symmetric_rtp_enabledboolean nullable

Whether Symmetric RTP is enabled for the trunk. When Symmetric RTP is disabled, Twilio will send RTP to the destination negotiated in the SDP. Disabling Symmetric RTP is considered to be more secure and therefore recommended. See Symmetric RTP for more information.

auth_type_setstring[] nullable

Reserved.

date_createdstring date-time nullable

The date and time in GMT when the resource was created specified in RFC 2822 format.

date_updatedstring date-time nullable

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

sidstring nullable

The unique string that we created to identify the Trunk resource.

urlstring uri nullable

The absolute URL of the resource.

linksobject nullable

The URLs of related resources.

Changes

Changed in 4 of the 50 revisions of this API.66

  • v1f944c667f44a11See the full diff
    • the recording response's property type/format changed from object/ to / for status 201

      response-property-type-changed

    • added the optional property symmetric_rtp_enabled to the response with the 201 status

      response-optional-property-added

    • the recording response's property type/format changed from / to object/ for status 201

      response-property-type-changed

  • v1f9ff8ccf746c44See the full diff
    • removed the enum value DELETE of the request property DisasterRecoveryMethod

      request-property-enum-value-removed

    • removed the enum value HEAD of the request property DisasterRecoveryMethod

      request-property-enum-value-removed

    • removed the enum value PATCH of the request property DisasterRecoveryMethod

      request-property-enum-value-removed

    • removed the enum value PUT of the request property DisasterRecoveryMethod

      request-property-enum-value-removed

    • removed the DELETE enum value from the disaster_recovery_method response property for the response status 201

      response-property-enum-value-removed

    • removed the HEAD enum value from the disaster_recovery_method response property for the response status 201

      response-property-enum-value-removed

    • removed the PATCH enum value from the disaster_recovery_method response property for the response status 201

      response-property-enum-value-removed

    • removed the PUT enum value from the disaster_recovery_method response property for the response status 201

      response-property-enum-value-removed

    • api tag TrunkingV1Trunk added

      api-tag-added