github.com/twilio/twilio-go@v1.20.1/rest/trunking/v1/model_trunking_v1_trunk.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Trunking
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  import (
    18  	"time"
    19  )
    20  
    21  // TrunkingV1Trunk struct for TrunkingV1Trunk
    22  type TrunkingV1Trunk struct {
    23  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trunk resource.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// 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](https://www.twilio.com/docs/sip-trunking#termination) for more information.
    26  	DomainName *string `json:"domain_name,omitempty"`
    27  	// The HTTP method we use to call the `disaster_recovery_url`. Can be: `GET` or `POST`.
    28  	DisasterRecoveryMethod *string `json:"disaster_recovery_method,omitempty"`
    29  	// 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](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information.
    30  	DisasterRecoveryUrl *string `json:"disaster_recovery_url,omitempty"`
    31  	// The string that you assigned to describe the resource.
    32  	FriendlyName *string `json:"friendly_name,omitempty"`
    33  	// 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](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information.
    34  	Secure *bool `json:"secure,omitempty"`
    35  	// 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.
    36  	Recording        *interface{} `json:"recording,omitempty"`
    37  	TransferMode     *string      `json:"transfer_mode,omitempty"`
    38  	TransferCallerId *string      `json:"transfer_caller_id,omitempty"`
    39  	// 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](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
    40  	CnamLookupEnabled *bool `json:"cnam_lookup_enabled,omitempty"`
    41  	// 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.
    42  	AuthType *string `json:"auth_type,omitempty"`
    43  	// Reserved.
    44  	AuthTypeSet *[]string `json:"auth_type_set,omitempty"`
    45  	// The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    46  	DateCreated *time.Time `json:"date_created,omitempty"`
    47  	// The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    48  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    49  	// The unique string that we created to identify the Trunk resource.
    50  	Sid *string `json:"sid,omitempty"`
    51  	// The absolute URL of the resource.
    52  	Url *string `json:"url,omitempty"`
    53  	// The URLs of related resources.
    54  	Links *map[string]interface{} `json:"links,omitempty"`
    55  }