# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import List, Optional from .._models import BaseModel from .dtmf_type import DtmfType from .inbound_fqdn import InboundFqdn from .outbound_fqdn import OutboundFqdn from .encrypted_media import EncryptedMedia from .transport_protocol import TransportProtocol from .anchorsite_override import AnchorsiteOverride from .webhook_api_version import WebhookAPIVersion from .connection_rtcp_settings import ConnectionRtcpSettings from .connection_noise_suppression import ConnectionNoiseSuppression from .shared.connection_jitter_buffer import ConnectionJitterBuffer from .shared.connection_noise_suppression_details import ConnectionNoiseSuppressionDetails __all__ = ["FqdnConnection"] class FqdnConnection(BaseModel): connection_name: str """A user-assigned name to help manage the connection.""" id: Optional[str] = None """Identifies the resource.""" active: Optional[bool] = None """Defaults to true""" adjust_dtmf_timestamp: Optional[bool] = None """Indicates whether DTMF timestamp adjustment is enabled.""" anchorsite_override: Optional[AnchorsiteOverride] = None """ `Latency` directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. """ android_push_credential_id: Optional[str] = None """The uuid of the push credential for Android""" bridge_generate_comfort_noise_on_cn: Optional[bool] = None """ Stores the connection preference for generating silent RTP toward the opposite call leg when comfort-noise packets (CN, payload type 13) are received during hold. Defaults to false and returns the saved value. Only JSON true and false are accepted; null and non-boolean values are rejected. This preference is independent of default_on_hold_comfort_noise_enabled and does not modify that setting. This API provisions the preference; call-processing behavior is implemented separately. """ call_cost_enabled: Optional[bool] = None """Indicates whether call cost calculation is enabled.""" call_cost_in_webhooks: Optional[bool] = None """Specifies if call cost webhooks should be sent for this connection.""" conversation_persistence: Optional[bool] = None """Whether conversation persistence is enabled for this connection. When enabled, calls handled by the connection are transcribed, stored, and indexed. Defaults to false. """ created_at: Optional[str] = None """ISO 8601 formatted date indicating when the resource was created.""" default_on_hold_comfort_noise_enabled: Optional[bool] = None """When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. """ dtmf_type: Optional[DtmfType] = None """Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. """ encode_contact_header_enabled: Optional[bool] = None """ Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. """ encrypted_media: Optional[EncryptedMedia] = None """Enable use of SRTP for encryption. Can only be set when the SIP signaling transport protocol is TLS. """ ignore_dtmf_duration: Optional[bool] = None """Indicates whether DTMF duration should be ignored.""" ignore_mark_bit: Optional[bool] = None """Indicates whether the mark bit should be ignored.""" inbound: Optional[InboundFqdn] = None ios_push_credential_id: Optional[str] = None """The uuid of the push credential for Ios""" jitter_buffer: Optional[ConnectionJitterBuffer] = None """Configuration options for Jitter Buffer. Enables Jitter Buffer for RTP streams of SIP Trunking calls. The feature is off unless enabled. You may define min and max values in msec for customized buffering behaviors. Larger values add latency but tolerate more jitter, while smaller values reduce latency but are more sensitive to jitter and reordering. """ microsoft_teams_sbc: Optional[bool] = None """The connection is enabled for Microsoft Teams Direct Routing.""" noise_suppression: Optional[ConnectionNoiseSuppression] = None """Controls when noise suppression is applied to calls. When set to 'inbound', noise suppression is applied to incoming audio. When set to 'outbound', it's applied to outgoing audio. When set to 'both', it's applied in both directions. When set to 'disabled', noise suppression is turned off. """ noise_suppression_details: Optional[ConnectionNoiseSuppressionDetails] = None """Configuration options for noise suppression. These settings are stored regardless of the noise_suppression value, but only take effect when noise_suppression is not 'disabled'. If you disable noise suppression and later re-enable it, the previously configured settings will be used. """ onnet_t38_passthrough_enabled: Optional[bool] = None """ Enable on-net T38 if you prefer that the sender and receiver negotiate T38 directly when both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call according to each leg's settings. """ outbound: Optional[OutboundFqdn] = None password: Optional[str] = None """The password for the FQDN connection. For primary accounts created on or after September 8, 2026, this password is returned as `********`. The password is returned in full on create, and on update only when that update changed the password. Accounts created before September 8, 2026 are unaffected. """ record_type: Optional[str] = None """Identifies the type of the resource.""" rtcp_settings: Optional[ConnectionRtcpSettings] = None rtp_pass_codecs_on_stream_change: Optional[bool] = None """Defines if codecs should be passed on stream change.""" send_normalized_timestamps: Optional[bool] = None """Indicates whether normalized timestamps should be sent.""" tags: Optional[List[str]] = None """Tags associated with the connection.""" third_party_control_enabled: Optional[bool] = None """Indicates whether third-party control is enabled.""" transport_protocol: Optional[TransportProtocol] = None """One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. """ txt_name: Optional[str] = None """The name for the TXT record associated with the FQDN connection.""" txt_ttl: Optional[int] = None """The time to live for the TXT record associated with the FQDN connection.""" txt_value: Optional[str] = None """The value for the TXT record associated with the FQDN connection.""" updated_at: Optional[str] = None """ISO 8601 formatted date indicating when the resource was updated.""" user_name: Optional[str] = None """The username for the FQDN connection.""" webhook_api_version: Optional[WebhookAPIVersion] = None """Determines which webhook format will be used, Telnyx API v1 or v2.""" webhook_event_failover_url: Optional[str] = None """ The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. """ webhook_event_url: Optional[str] = None """The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. """ webhook_timeout_secs: Optional[int] = None """Specifies how many seconds to wait before timing out a webhook."""