github.com/twilio/twilio-go@v1.20.1/rest/voice/v1/model_voice_v1_byoc_trunk.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Voice
     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  // VoiceV1ByocTrunk struct for VoiceV1ByocTrunk
    22  type VoiceV1ByocTrunk struct {
    23  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the BYOC Trunk resource.
    24  	AccountSid *string `json:"account_sid,omitempty"`
    25  	// The unique string that that we created to identify the BYOC Trunk resource.
    26  	Sid *string `json:"sid,omitempty"`
    27  	// The string that you assigned to describe the resource.
    28  	FriendlyName *string `json:"friendly_name,omitempty"`
    29  	// The URL we call using the `voice_method` when the BYOC Trunk receives a call.
    30  	VoiceUrl *string `json:"voice_url,omitempty"`
    31  	// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
    32  	VoiceMethod *string `json:"voice_method,omitempty"`
    33  	// The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`.
    34  	VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"`
    35  	// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
    36  	VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"`
    37  	// The URL that we call to pass status parameters (such as call ended) to your application.
    38  	StatusCallbackUrl *string `json:"status_callback_url,omitempty"`
    39  	// The HTTP method we use to call `status_callback_url`. Either `GET` or `POST`.
    40  	StatusCallbackMethod *string `json:"status_callback_method,omitempty"`
    41  	// Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC 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.
    42  	CnamLookupEnabled *bool `json:"cnam_lookup_enabled,omitempty"`
    43  	// The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure.
    44  	ConnectionPolicySid *string `json:"connection_policy_sid,omitempty"`
    45  	// The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\".
    46  	FromDomainSid *string `json:"from_domain_sid,omitempty"`
    47  	// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    48  	DateCreated *time.Time `json:"date_created,omitempty"`
    49  	// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    50  	DateUpdated *time.Time `json:"date_updated,omitempty"`
    51  	// The absolute URL of the resource.
    52  	Url *string `json:"url,omitempty"`
    53  }