Module: Telnyx::Models::CallDialParams::To

Extended by:
Internal::Type::Union
Defined in:
lib/telnyx/models/call_dial_params.rb,
sig/telnyx/models/call_dial_params.rbs

Overview

The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of strings. For SIP URI destinations, append ;secure=true or ;secure=srtp to enable SRTP media encryption for that endpoint, or ;secure=dtls to enable DTLS media encryption for that endpoint. If media_encryption is set to SRTP or DTLS, it takes precedence over any per-endpoint secure URI parameter. For a single string destination, you may append a comma followed by DTMF digits (e.g. +18004247767,200) to play those digits as DTMF once the called party answers — equivalent to setting send_digits_on_answer separately. If both are present, the explicit send_digits_on_answer parameter takes precedence. This shorthand is not supported when to is an array.

Constant Summary collapse

StringArray =
Telnyx::Internal::Type::ArrayOf[String]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(String, Array<String>)

Returns:

  • (Array(String, Array<String>))


# File 'lib/telnyx/models/call_dial_params.rb', line 638

Instance Method Details

#self?.variants::Array[Telnyx::Models::CallDialParams::to]

Returns:

  • (::Array[Telnyx::Models::CallDialParams::to])


513
# File 'sig/telnyx/models/call_dial_params.rbs', line 513

def self?.variants: -> ::Array[Telnyx::Models::CallDialParams::to]