Class: Telnyx::Models::CallDialParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::CallDialParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/telnyx/models/call_dial_params.rb,
sig/telnyx/models/call_dial_params.rbs
Overview
Defined Under Namespace
Modules: AnsweringMachineDetection, MediaEncryption, Privacy, Record, RecordChannels, RecordFormat, RecordTrack, RecordTrim, SipRegion, SipTransportProtocol, StreamTrack, SupervisorRole, To, WebhookURLMethod, WebhookURLsMethod Classes: AnsweringMachineDetectionConfig, ConferenceConfig, DeepfakeDetection, WebhookRetriesPolicy
Constant Summary collapse
- Telnyx =
Instance Attribute Summary collapse
-
#answering_machine_detection ⇒ Symbol, ...
Enables Answering Machine Detection.
-
#answering_machine_detection_config ⇒ Telnyx::Models::CallDialParams::AnsweringMachineDetectionConfig?
Optional configuration parameters to modify 'answering_machine_detection' performance.
-
#assistant ⇒ Telnyx::Models::CallAssistantRequest?
AI Assistant configuration.
-
#audio_url ⇒ String?
The URL of a file to be played back to the callee when the call is answered.
-
#billing_group_id ⇒ String?
Use this field to set the Billing Group ID for the call.
-
#bridge_intent ⇒ Boolean?
Indicates the intent to bridge this call with the call specified in link_to.
-
#bridge_on_answer ⇒ Boolean?
Whether to automatically bridge answered call to the call specified in link_to.
-
#client_state ⇒ String?
Use this field to add state to every subsequent webhook.
-
#command_id ⇒ String?
Use this field to avoid duplicate commands.
-
#conference_config ⇒ Telnyx::Models::CallDialParams::ConferenceConfig?
Optional configuration parameters to dial new participant into a conference.
-
#connection_id ⇒ String
The ID of the Call Control App (formerly ID of the connection) to be used when dialing the destination.
-
#conversation_relay_config ⇒ Telnyx::Models::ConversationRelayEmbeddedConfig?
Starts a Conversation Relay session automatically when the answered/dialed call is answered.
-
#custom_headers ⇒ Array<Telnyx::Models::CustomSipHeader>?
Custom headers to be added to the SIP INVITE.
-
#deepfake_detection ⇒ Telnyx::Models::CallDialParams::DeepfakeDetection?
Enables deepfake detection on the call.
- #dialogflow_config ⇒ Telnyx::Models::DialogflowConfig?
-
#enable_dialogflow ⇒ Boolean?
Enables Dialogflow for the current call.
-
#from ⇒ String
The
fromnumber to be used as the caller id presented to the destination (tonumber). -
#from_display_name ⇒ String?
The
from_display_namestring to be used as the caller id name (SIP From Display Name) presented to the destination (tonumber). -
#link_to ⇒ String?
Use another call's control id for sharing the same call session id.
-
#media_encryption ⇒ Symbol, ...
Defines whether media should be encrypted on the call.
-
#media_name ⇒ String?
The media_name of a file to be played back to the callee when the call is answered.
-
#park_after_unbridge ⇒ String?
If supplied with the value
self, the current leg will be parked after unbridge. -
#preferred_codecs ⇒ String?
The list of comma-separated codecs in a preferred order for the forked media to be received.
-
#prevent_double_bridge ⇒ Boolean?
Prevents bridging and hangs up the call if the target is already bridged.
-
#privacy ⇒ Symbol, ...
Indicates the privacy level to be used for the call.
-
#record ⇒ Symbol, ...
Start recording automatically after an event.
-
#record_channels ⇒ Symbol, ...
Defines which channel should be recorded ('single' or 'dual') when
recordis specified. -
#record_custom_file_name ⇒ String?
The custom recording file name to be used instead of the default
call_leg_id. -
#record_format ⇒ Symbol, ...
Defines the format of the recording ('wav' or 'mp3') when
recordis specified. -
#record_max_length ⇒ Integer?
Defines the maximum length for the recording in seconds when
recordis specified. -
#record_timeout_secs ⇒ Integer?
The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when
recordis specified. -
#record_track ⇒ Symbol, ...
The audio track to be recorded.
-
#record_trim ⇒ Symbol, ...
When set to
trim-silence, silence will be removed from the beginning and end of the recording. -
#retry_on_timeout ⇒ Boolean?
Whether to keep trying the remaining routing paths (e.g. alternate providers/gateways) for the same destination after
timeout_secsis reached for the current attempt. -
#route_to_mobile ⇒ Boolean?
When set to true, routes the call directly to the mobile device associated with the destination Telnyx Mobile number, bypassing Inbound Calls Interception configured in the Telnyx Portal under Mobile Numbers → select the number → Voice → Call Interception.
-
#send_digits_on_answer ⇒ String?
DTMF digits to send automatically after the called party answers.
-
#send_silence_when_idle ⇒ Boolean?
Generate silence RTP packets when no transmission available.
-
#sip_auth_password ⇒ String?
SIP Authentication password used for SIP challenges.
-
#sip_auth_username ⇒ String?
SIP Authentication username used for SIP challenges.
-
#sip_headers ⇒ Array<Telnyx::Models::SipHeader>?
SIP headers to be added to the SIP INVITE request.
-
#sip_region ⇒ Symbol, ...
Defines the SIP region to be used for the call.
-
#sip_transport_protocol ⇒ Symbol, ...
Defines SIP transport protocol to be used on the call.
-
#sound_modifications ⇒ Telnyx::Models::SoundModifications?
Use this field to modify sound effects, for example adjust the pitch.
-
#stream_auth_token ⇒ String?
An authentication token to be sent as part of the WebSocket connection when using streaming.
-
#stream_bidirectional_codec ⇒ Symbol, ...
Indicates codec for bidirectional streaming RTP payloads.
-
#stream_bidirectional_mode ⇒ Symbol, ...
Configures method of bidirectional streaming (mp3, rtp).
-
#stream_bidirectional_sampling_rate ⇒ Integer, ...
Audio sampling rate.
-
#stream_bidirectional_target_legs ⇒ Symbol, ...
Specifies which call legs should receive the bidirectional stream audio.
-
#stream_codec ⇒ Symbol, ...
Specifies the codec to be used for the streamed audio.
-
#stream_establish_before_call_originate ⇒ Boolean?
Establish websocket connection before dialing the destination.
-
#stream_track ⇒ Symbol, ...
Specifies which track should be streamed.
-
#stream_url ⇒ String?
The destination WebSocket address where the stream is going to be delivered.
-
#supervise_call_control_id ⇒ String?
The call leg which will be supervised by the new call.
-
#supervisor_role ⇒ Symbol, ...
The role of the supervisor call.
-
#time_limit_secs ⇒ Integer?
Sets the maximum duration of a Call Control Leg in seconds.
-
#timeout_secs ⇒ Integer?
The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being called.
-
#to ⇒ String+
The DID or SIP URI to dial out to.
-
#transcription ⇒ Boolean?
Enable transcription upon call answer.
- #transcription_config ⇒ Telnyx::Models::Calls::TranscriptionStartRequest?
-
#webhook_retries_policies ⇒ Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}?
A map of event types to retry policies.
-
#webhook_url ⇒ String?
Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.
-
#webhook_url_method ⇒ Symbol, ...
HTTP request type used for
webhook_url. -
#webhook_urls ⇒ Hash{Symbol=>String}?
A map of event types to webhook URLs.
-
#webhook_urls_method ⇒ Symbol, ...
HTTP request method to invoke
webhook_urls.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(retries_ms: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see WebhookRetriesPolicy for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(retries_ms: nil) ⇒ Object
Some parameter documentations has been truncated, see WebhookRetriesPolicy for more details.
|
|
# File 'lib/telnyx/models/call_dial_params.rb', line 510
|
Instance Attribute Details
#answering_machine_detection ⇒ Symbol, ...
Enables Answering Machine Detection. Telnyx offers Premium and Standard
detections. With Premium detection, when a call is answered, Telnyx runs
real-time detection and sends a call.machine.premium.detection.ended webhook
with one of the following results: human_residence, human_business,
machine, silence or fax_detected. If we detect a beep, we also send a
call.machine.premium.greeting.ended webhook with the result of
beep_detected. If we detect a beep before
call.machine.premium.detection.ended we only send
call.machine.premium.greeting.ended, and if we detect a beep after
call.machine.premium.detection.ended, we send both webhooks. With Standard
detection, when a call is answered, Telnyx runs real-time detection to determine
if it was picked up by a human or a machine and sends an
call.machine.detection.ended webhook with the analysis result. If
greeting_end or detect_words is used and a machine is detected, you will
receive another call.machine.greeting.ended webhook when the answering machine
greeting ends with a beep or silence. If detect_beep is used, you will only
receive call.machine.greeting.ended if a beep is detected.
60 |
# File 'lib/telnyx/models/call_dial_params.rb', line 60 optional :answering_machine_detection, enum: -> { Telnyx::CallDialParams::AnsweringMachineDetection } |
#answering_machine_detection_config ⇒ Telnyx::Models::CallDialParams::AnsweringMachineDetectionConfig?
Optional configuration parameters to modify 'answering_machine_detection'
performance. Only total_analysis_time_millis and greeting_duration_millis
parameters are applicable when premium is selected as
answering_machine_detection.
69 70 |
# File 'lib/telnyx/models/call_dial_params.rb', line 69 optional :answering_machine_detection_config, -> { Telnyx::CallDialParams::AnsweringMachineDetectionConfig } |
#assistant ⇒ Telnyx::Models::CallAssistantRequest?
AI Assistant configuration. All fields except id are optional — the
assistant's stored configuration will be used as fallback for any omitted
fields.
78 |
# File 'lib/telnyx/models/call_dial_params.rb', line 78 optional :assistant, -> { Telnyx::CallAssistantRequest } |
#audio_url ⇒ String?
The URL of a file to be played back to the callee when the call is answered. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request.
86 |
# File 'lib/telnyx/models/call_dial_params.rb', line 86 optional :audio_url, String |
#billing_group_id ⇒ String?
Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing Group ID.
93 |
# File 'lib/telnyx/models/call_dial_params.rb', line 93 optional :billing_group_id, String |
#bridge_intent ⇒ Boolean?
Indicates the intent to bridge this call with the call specified in link_to. When bridge_intent is true, link_to becomes required and the from number will be overwritten by the from number from the linked call.
101 |
# File 'lib/telnyx/models/call_dial_params.rb', line 101 optional :bridge_intent, Telnyx::Internal::Type::Boolean |
#bridge_on_answer ⇒ Boolean?
Whether to automatically bridge answered call to the call specified in link_to. When bridge_on_answer is true, link_to becomes required.
108 |
# File 'lib/telnyx/models/call_dial_params.rb', line 108 optional :bridge_on_answer, Telnyx::Internal::Type::Boolean |
#client_state ⇒ String?
Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.
115 |
# File 'lib/telnyx/models/call_dial_params.rb', line 115 optional :client_state, String |
#command_id ⇒ String?
Use this field to avoid duplicate commands. Telnyx will ignore others Dial
commands with the same command_id.
122 |
# File 'lib/telnyx/models/call_dial_params.rb', line 122 optional :command_id, String |
#conference_config ⇒ Telnyx::Models::CallDialParams::ConferenceConfig?
Optional configuration parameters to dial new participant into a conference.
128 |
# File 'lib/telnyx/models/call_dial_params.rb', line 128 optional :conference_config, -> { Telnyx::CallDialParams::ConferenceConfig } |
#connection_id ⇒ String
The ID of the Call Control App (formerly ID of the connection) to be used when dialing the destination.
15 |
# File 'lib/telnyx/models/call_dial_params.rb', line 15 required :connection_id, String |
#conversation_relay_config ⇒ Telnyx::Models::ConversationRelayEmbeddedConfig?
Starts a Conversation Relay session automatically when the answered/dialed call
is answered. This embedded shape is supported on answer and dial. It uses
public field names (url, dtmf_detection, greeting, voice, language,
etc.) and maps them to the underlying Conversation Relay action. client_state,
tts_language, and transcription_language inside this object are ignored; use
the parent command's client_state and command_id fields instead.
139 |
# File 'lib/telnyx/models/call_dial_params.rb', line 139 optional :conversation_relay_config, -> { Telnyx::ConversationRelayEmbeddedConfig } |
#custom_headers ⇒ Array<Telnyx::Models::CustomSipHeader>?
Custom headers to be added to the SIP INVITE.
145 |
# File 'lib/telnyx/models/call_dial_params.rb', line 145 optional :custom_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CustomSipHeader] } |
#deepfake_detection ⇒ Telnyx::Models::CallDialParams::DeepfakeDetection?
Enables deepfake detection on the call. When enabled, audio from the remote
party is streamed to a detection service that analyzes whether the voice is
AI-generated. Results are delivered via the call.deepfake_detection.result
webhook.
154 |
# File 'lib/telnyx/models/call_dial_params.rb', line 154 optional :deepfake_detection, -> { Telnyx::CallDialParams::DeepfakeDetection } |
#dialogflow_config ⇒ Telnyx::Models::DialogflowConfig?
159 |
# File 'lib/telnyx/models/call_dial_params.rb', line 159 optional :dialogflow_config, -> { Telnyx::DialogflowConfig } |
#enable_dialogflow ⇒ Boolean?
Enables Dialogflow for the current call. The default value is false.
165 |
# File 'lib/telnyx/models/call_dial_params.rb', line 165 optional :enable_dialogflow, Telnyx::Internal::Type::Boolean |
#from ⇒ String
The from number to be used as the caller id presented to the destination (to
number). The number should be in +E164 format.
22 |
# File 'lib/telnyx/models/call_dial_params.rb', line 22 required :from, String |
#from_display_name ⇒ String?
The from_display_name string to be used as the caller id name (SIP From
Display Name) presented to the destination (to number). The string should have
a maximum of 128 characters, containing only letters, numbers, spaces, and
-_~!.+ special characters. If ommited, the display name will be the same as the
number in the from field.
175 |
# File 'lib/telnyx/models/call_dial_params.rb', line 175 optional :from_display_name, String |
#link_to ⇒ String?
Use another call's control id for sharing the same call session id
181 |
# File 'lib/telnyx/models/call_dial_params.rb', line 181 optional :link_to, String |
#media_encryption ⇒ Symbol, ...
Defines whether media should be encrypted on the call. For SIP URI destinations,
media encryption can also be requested per endpoint with the secure URI
parameter: ;secure=true or ;secure=srtp enables SRTP, and ;secure=dtls
enables DTLS. This parameter, when set to SRTP or DTLS, takes precedence
over the per-endpoint secure value.
191 |
# File 'lib/telnyx/models/call_dial_params.rb', line 191 optional :media_encryption, enum: -> { Telnyx::CallDialParams::MediaEncryption } |
#media_name ⇒ String?
The media_name of a file to be played back to the callee when the call is answered. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file.
200 |
# File 'lib/telnyx/models/call_dial_params.rb', line 200 optional :media_name, String |
#park_after_unbridge ⇒ String?
If supplied with the value self, the current leg will be parked after
unbridge. If not set, the default behavior is to hang up the leg. When
park_after_unbridge is set, link_to becomes required.
208 |
# File 'lib/telnyx/models/call_dial_params.rb', line 208 optional :park_after_unbridge, String |
#preferred_codecs ⇒ String?
The list of comma-separated codecs in a preferred order for the forked media to be received.
215 |
# File 'lib/telnyx/models/call_dial_params.rb', line 215 optional :preferred_codecs, String |
#prevent_double_bridge ⇒ Boolean?
Prevents bridging and hangs up the call if the target is already bridged. Disabled by default.
222 |
# File 'lib/telnyx/models/call_dial_params.rb', line 222 optional :prevent_double_bridge, Telnyx::Internal::Type::Boolean |
#privacy ⇒ Symbol, ...
Indicates the privacy level to be used for the call. When set to id, caller ID
information (name and number) will be hidden from the called party. When set to
none or omitted, caller ID will be shown normally.
230 |
# File 'lib/telnyx/models/call_dial_params.rb', line 230 optional :privacy, enum: -> { Telnyx::CallDialParams::Privacy } |
#record ⇒ Symbol, ...
Start recording automatically after an event. Disabled by default.
236 |
# File 'lib/telnyx/models/call_dial_params.rb', line 236 optional :record, enum: -> { Telnyx::CallDialParams::Record } |
#record_channels ⇒ Symbol, ...
Defines which channel should be recorded ('single' or 'dual') when record is
specified.
243 |
# File 'lib/telnyx/models/call_dial_params.rb', line 243 optional :record_channels, enum: -> { Telnyx::CallDialParams::RecordChannels } |
#record_custom_file_name ⇒ String?
The custom recording file name to be used instead of the default call_leg_id.
Telnyx will still add a Unix timestamp suffix.
250 |
# File 'lib/telnyx/models/call_dial_params.rb', line 250 optional :record_custom_file_name, String |
#record_format ⇒ Symbol, ...
Defines the format of the recording ('wav' or 'mp3') when record is specified.
256 |
# File 'lib/telnyx/models/call_dial_params.rb', line 256 optional :record_format, enum: -> { Telnyx::CallDialParams::RecordFormat } |
#record_max_length ⇒ Integer?
Defines the maximum length for the recording in seconds when record is
specified. The minimum value is 0. The maximum value is 43200. The default value
is 0 (infinite).
264 |
# File 'lib/telnyx/models/call_dial_params.rb', line 264 optional :record_max_length, Integer |
#record_timeout_secs ⇒ Integer?
The number of seconds that Telnyx will wait for the recording to be stopped if
silence is detected when record is specified. The timer only starts when the
speech is detected. Please note that call transcription is used to detect
silence and the related charge will be applied. The minimum value is 0. The
default value is 0 (infinite).
274 |
# File 'lib/telnyx/models/call_dial_params.rb', line 274 optional :record_timeout_secs, Integer |
#record_track ⇒ Symbol, ...
The audio track to be recorded. Can be either both, inbound or outbound.
If only single track is specified (inbound, outbound), channels
configuration is ignored and it will be recorded as mono (single channel).
282 |
# File 'lib/telnyx/models/call_dial_params.rb', line 282 optional :record_track, enum: -> { Telnyx::CallDialParams::RecordTrack } |
#record_trim ⇒ Symbol, ...
When set to trim-silence, silence will be removed from the beginning and end
of the recording.
289 |
# File 'lib/telnyx/models/call_dial_params.rb', line 289 optional :record_trim, enum: -> { Telnyx::CallDialParams::RecordTrim } |
#retry_on_timeout ⇒ Boolean?
Whether to keep trying the remaining routing paths (e.g. alternate
providers/gateways) for the same destination after timeout_secs is reached for
the current attempt. When set to false, reaching timeout_secs aborts the
entire dial attempt and the call.hangup webhook reports a hangup_cause of
no_answer instead of timeout.
299 |
# File 'lib/telnyx/models/call_dial_params.rb', line 299 optional :retry_on_timeout, Telnyx::Internal::Type::Boolean |
#route_to_mobile ⇒ Boolean?
When set to true, routes the call directly to the mobile device associated with the destination Telnyx Mobile number, bypassing Inbound Calls Interception configured in the Telnyx Portal under Mobile Numbers → select the number → Voice → Call Interception. Use this when transferring an intercepted call to the mobile device to prevent the call from being intercepted again. Defaults to false.
310 |
# File 'lib/telnyx/models/call_dial_params.rb', line 310 optional :route_to_mobile, Telnyx::Internal::Type::Boolean |
#send_digits_on_answer ⇒ String?
DTMF digits to send automatically after the called party answers. Useful for
reaching an extension behind an IVR (e.g. "200" to dial extension 200 once the
called party picks up). Allowed characters: 0-9, A-D, w (0.5s pause), W
(1s pause), *, #. Maximum 64 characters. When omitted, no automatic DTMF is
sent. May also be supplied inline by appending ,<digits> to to (e.g.
to=+18004247767,200); if both forms are present, this explicit field takes
precedence.
322 |
# File 'lib/telnyx/models/call_dial_params.rb', line 322 optional :send_digits_on_answer, String |
#send_silence_when_idle ⇒ Boolean?
Generate silence RTP packets when no transmission available.
328 |
# File 'lib/telnyx/models/call_dial_params.rb', line 328 optional :send_silence_when_idle, Telnyx::Internal::Type::Boolean |
#sip_auth_password ⇒ String?
SIP Authentication password used for SIP challenges.
334 |
# File 'lib/telnyx/models/call_dial_params.rb', line 334 optional :sip_auth_password, String |
#sip_auth_username ⇒ String?
SIP Authentication username used for SIP challenges.
340 |
# File 'lib/telnyx/models/call_dial_params.rb', line 340 optional :sip_auth_username, String |
#sip_headers ⇒ Array<Telnyx::Models::SipHeader>?
SIP headers to be added to the SIP INVITE request. Currently only User-to-User header is supported.
347 |
# File 'lib/telnyx/models/call_dial_params.rb', line 347 optional :sip_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::SipHeader] } |
#sip_region ⇒ Symbol, ...
Defines the SIP region to be used for the call.
353 |
# File 'lib/telnyx/models/call_dial_params.rb', line 353 optional :sip_region, enum: -> { Telnyx::CallDialParams::SipRegion } |
#sip_transport_protocol ⇒ Symbol, ...
Defines SIP transport protocol to be used on the call.
359 |
# File 'lib/telnyx/models/call_dial_params.rb', line 359 optional :sip_transport_protocol, enum: -> { Telnyx::CallDialParams::SipTransportProtocol } |
#sound_modifications ⇒ Telnyx::Models::SoundModifications?
Use this field to modify sound effects, for example adjust the pitch.
365 |
# File 'lib/telnyx/models/call_dial_params.rb', line 365 optional :sound_modifications, -> { Telnyx::SoundModifications } |
#stream_auth_token ⇒ String?
An authentication token to be sent as part of the WebSocket connection when using streaming. Maximum length is 4000 characters.
372 |
# File 'lib/telnyx/models/call_dial_params.rb', line 372 optional :stream_auth_token, String |
#stream_bidirectional_codec ⇒ Symbol, ...
Indicates codec for bidirectional streaming RTP payloads. Used only with stream_bidirectional_mode=rtp. Case sensitive.
379 |
# File 'lib/telnyx/models/call_dial_params.rb', line 379 optional :stream_bidirectional_codec, enum: -> { Telnyx::StreamBidirectionalCodec } |
#stream_bidirectional_mode ⇒ Symbol, ...
Configures method of bidirectional streaming (mp3, rtp).
385 |
# File 'lib/telnyx/models/call_dial_params.rb', line 385 optional :stream_bidirectional_mode, enum: -> { Telnyx::StreamBidirectionalMode } |
#stream_bidirectional_sampling_rate ⇒ Integer, ...
Audio sampling rate.
391 |
# File 'lib/telnyx/models/call_dial_params.rb', line 391 optional :stream_bidirectional_sampling_rate, enum: -> { Telnyx::StreamBidirectionalSamplingRate } |
#stream_bidirectional_target_legs ⇒ Symbol, ...
Specifies which call legs should receive the bidirectional stream audio.
397 |
# File 'lib/telnyx/models/call_dial_params.rb', line 397 optional :stream_bidirectional_target_legs, enum: -> { Telnyx::StreamBidirectionalTargetLegs } |
#stream_codec ⇒ Symbol, ...
Specifies the codec to be used for the streamed audio. When set to 'default' or when transcoding is not possible, the codec from the call will be used.
404 |
# File 'lib/telnyx/models/call_dial_params.rb', line 404 optional :stream_codec, enum: -> { Telnyx::StreamCodec } |
#stream_establish_before_call_originate ⇒ Boolean?
Establish websocket connection before dialing the destination. This is useful for cases where the websocket connection takes a long time to establish.
411 |
# File 'lib/telnyx/models/call_dial_params.rb', line 411 optional :stream_establish_before_call_originate, Telnyx::Internal::Type::Boolean |
#stream_track ⇒ Symbol, ...
Specifies which track should be streamed.
417 |
# File 'lib/telnyx/models/call_dial_params.rb', line 417 optional :stream_track, enum: -> { Telnyx::CallDialParams::StreamTrack } |
#stream_url ⇒ String?
The destination WebSocket address where the stream is going to be delivered.
423 |
# File 'lib/telnyx/models/call_dial_params.rb', line 423 optional :stream_url, String |
#supervise_call_control_id ⇒ String?
The call leg which will be supervised by the new call.
429 |
# File 'lib/telnyx/models/call_dial_params.rb', line 429 optional :supervise_call_control_id, String |
#supervisor_role ⇒ Symbol, ...
The role of the supervisor call. 'barge' means that supervisor call hears and is being heard by both ends of the call (caller & callee). 'whisper' means that only supervised_call_control_id hears supervisor but supervisor can hear everything. 'monitor' means that nobody can hear supervisor call, but supervisor can hear everything on the call.
439 |
# File 'lib/telnyx/models/call_dial_params.rb', line 439 optional :supervisor_role, enum: -> { Telnyx::CallDialParams::SupervisorRole } |
#time_limit_secs ⇒ Integer?
Sets the maximum duration of a Call Control Leg in seconds. If the time limit is
reached, the call will hangup and a call.hangup webhook with a hangup_cause
of time_limit will be sent. For example, by setting a time limit of 120
seconds, a Call Leg will be automatically terminated two minutes after being
answered. The default time limit is 14400 seconds or 4 hours and this is also
the maximum allowed call length.
450 |
# File 'lib/telnyx/models/call_dial_params.rb', line 450 optional :time_limit_secs, Integer |
#timeout_secs ⇒ Integer?
The number of seconds that Telnyx will wait for the call to be answered by the
destination to which it is being called. If the timeout is reached before an
answer is received, the call will hangup and a call.hangup webhook with a
hangup_cause of timeout will be sent. Minimum value is 5 seconds. Maximum
value is 600 seconds.
460 |
# File 'lib/telnyx/models/call_dial_params.rb', line 460 optional :timeout_secs, Integer |
#to ⇒ String+
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.
38 |
# File 'lib/telnyx/models/call_dial_params.rb', line 38 required :to, union: -> { Telnyx::CallDialParams::To } |
#transcription ⇒ Boolean?
Enable transcription upon call answer. The default value is false.
466 |
# File 'lib/telnyx/models/call_dial_params.rb', line 466 optional :transcription, Telnyx::Internal::Type::Boolean |
#transcription_config ⇒ Telnyx::Models::Calls::TranscriptionStartRequest?
471 |
# File 'lib/telnyx/models/call_dial_params.rb', line 471 optional :transcription_config, -> { Telnyx::Calls::TranscriptionStartRequest } |
#webhook_retries_policies ⇒ Hash{Symbol=>Telnyx::Models::CallDialParams::WebhookRetriesPolicy}?
A map of event types to retry policies. Each retry policy contains an array of
retries_ms specifying the delays between retry attempts in milliseconds.
Maximum 5 retries, total delay cannot exceed 60 seconds.
479 480 |
# File 'lib/telnyx/models/call_dial_params.rb', line 479 optional :webhook_retries_policies, -> { Telnyx::Internal::Type::HashOf[Telnyx::CallDialParams::WebhookRetriesPolicy] } |
#webhook_url ⇒ String?
Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.
487 |
# File 'lib/telnyx/models/call_dial_params.rb', line 487 optional :webhook_url, String |
#webhook_url_method ⇒ Symbol, ...
HTTP request type used for webhook_url.
493 |
# File 'lib/telnyx/models/call_dial_params.rb', line 493 optional :webhook_url_method, enum: -> { Telnyx::CallDialParams::WebhookURLMethod } |
#webhook_urls ⇒ Hash{Symbol=>String}?
A map of event types to webhook URLs. When an event of the specified type occurs, the webhook URL associated with that event type will be called instead of the default webhook URL. Events not mapped here will use the default webhook URL.
502 |
# File 'lib/telnyx/models/call_dial_params.rb', line 502 optional :webhook_urls, Telnyx::Internal::Type::HashOf[String] |
#webhook_urls_method ⇒ Symbol, ...
HTTP request method to invoke webhook_urls.
508 |
# File 'lib/telnyx/models/call_dial_params.rb', line 508 optional :webhook_urls_method, enum: -> { Telnyx::CallDialParams::WebhookURLsMethod } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/call_dial_params.rb', line 697
|
Instance Method Details
#to_hash ⇒ {
454 |
# File 'sig/telnyx/models/call_dial_params.rbs', line 454
def to_hash: -> {
|