telnyx 5.111.0 → 5.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +178 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +178 -9
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +179 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +177 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +210 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +210 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +491 -0
- data/lib/telnyx/models/calls/action_start_conversation_relay_response.rb +37 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_params.rb +44 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_response.rb +18 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
- data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +10 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +8 -3
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
- data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +10 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_create_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_list_response.rb +10 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +8 -3
- data/lib/telnyx/models.rb +0 -20
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +101 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +8 -22
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +366 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +351 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +315 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +310 -3
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1075 -0
- data/rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi +95 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi +72 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi +39 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +23 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +23 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +23 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +36 -6
- data/rbi/telnyx/models.rbi +0 -20
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
- data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
- data/rbi/telnyx/resources/calls/actions.rbi +152 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +152 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +149 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +149 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +149 -4
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +416 -0
- data/sig/telnyx/models/calls/action_start_conversation_relay_response.rbs +45 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs +38 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs +20 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +11 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +11 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +11 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +18 -6
- data/sig/telnyx/models.rbs +0 -20
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/calls/actions.rbs +29 -0
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +26 -68
- data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
- data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
- data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
- data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
- data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -47
- data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
- data/lib/telnyx/models/model_metadata.rb +0 -212
- data/lib/telnyx/models/public_internet_gateway_read.rb +0 -83
- data/lib/telnyx/models/uac_connection.rb +0 -412
- data/lib/telnyx/models/uac_external_settings.rb +0 -101
- data/lib/telnyx/models/uac_inbound.rb +0 -210
- data/lib/telnyx/models/uac_internal_settings.rb +0 -25
- data/lib/telnyx/models/uac_outbound.rb +0 -131
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +0 -212
- data/lib/telnyx/models/wireguard_interface_read.rb +0 -136
- data/lib/telnyx/models/xai_voice_settings.rb +0 -36
- data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
- data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -83
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
- data/rbi/telnyx/models/model_metadata.rbi +0 -272
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +0 -128
- data/rbi/telnyx/models/uac_connection.rbi +0 -684
- data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
- data/rbi/telnyx/models/uac_inbound.rbi +0 -410
- data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
- data/rbi/telnyx/models/uac_outbound.rbi +0 -224
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +0 -345
- data/rbi/telnyx/models/wireguard_interface_read.rbi +0 -213
- data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
- data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -40
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
- data/sig/telnyx/models/model_metadata.rbs +0 -142
- data/sig/telnyx/models/public_internet_gateway_read.rbs +0 -80
- data/sig/telnyx/models/uac_connection.rbs +0 -338
- data/sig/telnyx/models/uac_external_settings.rbs +0 -73
- data/sig/telnyx/models/uac_inbound.rbs +0 -190
- data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
- data/sig/telnyx/models/uac_outbound.rbs +0 -113
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +0 -190
- data/sig/telnyx/models/wireguard_interface_read.rbs +0 -127
- data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
|
@@ -72,8 +72,8 @@ module Telnyx
|
|
|
72
72
|
# External SIP peer settings used by Telnyx when registering to your PBX and
|
|
73
73
|
# routing outbound calls.
|
|
74
74
|
#
|
|
75
|
-
# @return [Telnyx::Models::
|
|
76
|
-
optional :external_uac_settings, -> { Telnyx::
|
|
75
|
+
# @return [Telnyx::Models::UacConnectionCreateParams::ExternalUacSettings, nil]
|
|
76
|
+
optional :external_uac_settings, -> { Telnyx::UacConnectionCreateParams::ExternalUacSettings }
|
|
77
77
|
|
|
78
78
|
# @!attribute inbound
|
|
79
79
|
# Inbound settings that can be supplied when creating or updating a UAC
|
|
@@ -86,8 +86,8 @@ module Telnyx
|
|
|
86
86
|
# @!attribute internal_uac_settings
|
|
87
87
|
# Internal Telnyx-side settings for a UAC connection.
|
|
88
88
|
#
|
|
89
|
-
# @return [Telnyx::Models::
|
|
90
|
-
optional :internal_uac_settings, -> { Telnyx::
|
|
89
|
+
# @return [Telnyx::Models::UacConnectionCreateParams::InternalUacSettings, nil]
|
|
90
|
+
optional :internal_uac_settings, -> { Telnyx::UacConnectionCreateParams::InternalUacSettings }
|
|
91
91
|
|
|
92
92
|
# @!attribute ios_push_credential_id
|
|
93
93
|
# The uuid of the push credential for Ios
|
|
@@ -133,8 +133,8 @@ module Telnyx
|
|
|
133
133
|
|
|
134
134
|
# @!attribute outbound
|
|
135
135
|
#
|
|
136
|
-
# @return [Telnyx::Models::
|
|
137
|
-
optional :outbound, -> { Telnyx::
|
|
136
|
+
# @return [Telnyx::Models::UacConnectionCreateParams::Outbound, nil]
|
|
137
|
+
optional :outbound, -> { Telnyx::UacConnectionCreateParams::Outbound }
|
|
138
138
|
|
|
139
139
|
# @!attribute password
|
|
140
140
|
# The password to be used as part of the credentials. Must be 8 to 128 characters
|
|
@@ -222,11 +222,11 @@ module Telnyx
|
|
|
222
222
|
#
|
|
223
223
|
# @param encrypted_media [Symbol, Telnyx::Models::EncryptedMedia, nil] Enable use of SRTP for encryption. Cannot be set if the transport_portocol is TL
|
|
224
224
|
#
|
|
225
|
-
# @param external_uac_settings [Telnyx::Models::
|
|
225
|
+
# @param external_uac_settings [Telnyx::Models::UacConnectionCreateParams::ExternalUacSettings] External SIP peer settings used by Telnyx when registering to your PBX and routi
|
|
226
226
|
#
|
|
227
227
|
# @param inbound [Telnyx::Models::UacConnectionCreateParams::Inbound] Inbound settings that can be supplied when creating or updating a UAC connection
|
|
228
228
|
#
|
|
229
|
-
# @param internal_uac_settings [Telnyx::Models::
|
|
229
|
+
# @param internal_uac_settings [Telnyx::Models::UacConnectionCreateParams::InternalUacSettings] Internal Telnyx-side settings for a UAC connection.
|
|
230
230
|
#
|
|
231
231
|
# @param ios_push_credential_id [String, nil] The uuid of the push credential for Ios
|
|
232
232
|
#
|
|
@@ -238,7 +238,7 @@ module Telnyx
|
|
|
238
238
|
#
|
|
239
239
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
240
240
|
#
|
|
241
|
-
# @param outbound [Telnyx::Models::
|
|
241
|
+
# @param outbound [Telnyx::Models::UacConnectionCreateParams::Outbound]
|
|
242
242
|
#
|
|
243
243
|
# @param password [String] The password to be used as part of the credentials. Must be 8 to 128 characters
|
|
244
244
|
#
|
|
@@ -260,6 +260,105 @@ module Telnyx
|
|
|
260
260
|
#
|
|
261
261
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
262
262
|
|
|
263
|
+
class ExternalUacSettings < Telnyx::Internal::Type::BaseModel
|
|
264
|
+
# @!attribute auth_username
|
|
265
|
+
# The authentication username used in SIP digest authentication. If not set, the
|
|
266
|
+
# Username value will be used.
|
|
267
|
+
#
|
|
268
|
+
# @return [String, nil]
|
|
269
|
+
optional :auth_username, String, nil?: true
|
|
270
|
+
|
|
271
|
+
# @!attribute expiration_sec
|
|
272
|
+
# The registration interval, in seconds, indicating how often the system refreshes
|
|
273
|
+
# the SIP registration with the external SIP peer.
|
|
274
|
+
#
|
|
275
|
+
# @return [Integer, nil]
|
|
276
|
+
optional :expiration_sec, Integer, nil?: true
|
|
277
|
+
|
|
278
|
+
# @!attribute from_user
|
|
279
|
+
# The user portion of the SIP From header used in outbound requests. This controls
|
|
280
|
+
# the caller identity presented to the external SIP peer.
|
|
281
|
+
#
|
|
282
|
+
# @return [String, nil]
|
|
283
|
+
optional :from_user, String, nil?: true
|
|
284
|
+
|
|
285
|
+
# @!attribute outbound_proxy
|
|
286
|
+
# An optional SIP proxy used to route outbound requests before reaching the
|
|
287
|
+
# external SIP peer.
|
|
288
|
+
#
|
|
289
|
+
# @return [String, nil]
|
|
290
|
+
optional :outbound_proxy, String, nil?: true
|
|
291
|
+
|
|
292
|
+
# @!attribute password
|
|
293
|
+
# The SIP password used for digest authentication with the external SIP peer.
|
|
294
|
+
#
|
|
295
|
+
# @return [String, nil]
|
|
296
|
+
optional :password, String
|
|
297
|
+
|
|
298
|
+
# @!attribute proxy
|
|
299
|
+
# The SIP proxy address of the external SIP peer used for registrations and
|
|
300
|
+
# outbound call routing.
|
|
301
|
+
#
|
|
302
|
+
# @return [String, nil]
|
|
303
|
+
optional :proxy, String
|
|
304
|
+
|
|
305
|
+
# @!attribute transport
|
|
306
|
+
# The transport protocol used for SIP signaling when communicating with the
|
|
307
|
+
# external SIP peer. One of UDP, TLS, or TCP.
|
|
308
|
+
#
|
|
309
|
+
# @return [Symbol, Telnyx::Models::UacConnectionCreateParams::ExternalUacSettings::Transport, nil]
|
|
310
|
+
optional :transport,
|
|
311
|
+
enum: -> { Telnyx::UacConnectionCreateParams::ExternalUacSettings::Transport },
|
|
312
|
+
nil?: true
|
|
313
|
+
|
|
314
|
+
# @!attribute username
|
|
315
|
+
# The SIP username used to authenticate with the external SIP peer for
|
|
316
|
+
# registrations and outbound calls. Must start with a letter or number and contain
|
|
317
|
+
# only letters, numbers, hyphens, and underscores.
|
|
318
|
+
#
|
|
319
|
+
# @return [String, nil]
|
|
320
|
+
optional :username, String
|
|
321
|
+
|
|
322
|
+
# @!method initialize(auth_username: nil, expiration_sec: nil, from_user: nil, outbound_proxy: nil, password: nil, proxy: nil, transport: nil, username: nil)
|
|
323
|
+
# Some parameter documentations has been truncated, see
|
|
324
|
+
# {Telnyx::Models::UacConnectionCreateParams::ExternalUacSettings} for more
|
|
325
|
+
# details.
|
|
326
|
+
#
|
|
327
|
+
# External SIP peer settings used by Telnyx when registering to your PBX and
|
|
328
|
+
# routing outbound calls.
|
|
329
|
+
#
|
|
330
|
+
# @param auth_username [String, nil] The authentication username used in SIP digest authentication. If not set, the U
|
|
331
|
+
#
|
|
332
|
+
# @param expiration_sec [Integer, nil] The registration interval, in seconds, indicating how often the system refreshes
|
|
333
|
+
#
|
|
334
|
+
# @param from_user [String, nil] The user portion of the SIP From header used in outbound requests. This controls
|
|
335
|
+
#
|
|
336
|
+
# @param outbound_proxy [String, nil] An optional SIP proxy used to route outbound requests before reaching the extern
|
|
337
|
+
#
|
|
338
|
+
# @param password [String] The SIP password used for digest authentication with the external SIP peer.
|
|
339
|
+
#
|
|
340
|
+
# @param proxy [String] The SIP proxy address of the external SIP peer used for registrations and outbou
|
|
341
|
+
#
|
|
342
|
+
# @param transport [Symbol, Telnyx::Models::UacConnectionCreateParams::ExternalUacSettings::Transport, nil] The transport protocol used for SIP signaling when communicating with the extern
|
|
343
|
+
#
|
|
344
|
+
# @param username [String] The SIP username used to authenticate with the external SIP peer for registratio
|
|
345
|
+
|
|
346
|
+
# The transport protocol used for SIP signaling when communicating with the
|
|
347
|
+
# external SIP peer. One of UDP, TLS, or TCP.
|
|
348
|
+
#
|
|
349
|
+
# @see Telnyx::Models::UacConnectionCreateParams::ExternalUacSettings#transport
|
|
350
|
+
module Transport
|
|
351
|
+
extend Telnyx::Internal::Type::Enum
|
|
352
|
+
|
|
353
|
+
UDP = :UDP
|
|
354
|
+
TLS = :TLS
|
|
355
|
+
TCP = :TCP
|
|
356
|
+
|
|
357
|
+
# @!method self.values
|
|
358
|
+
# @return [Array<Symbol>]
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
263
362
|
class Inbound < Telnyx::Internal::Type::BaseModel
|
|
264
363
|
# @!attribute ani_number_format
|
|
265
364
|
# This setting allows you to set the format with which the caller's number (ANI)
|
|
@@ -442,6 +541,27 @@ module Telnyx
|
|
|
442
541
|
end
|
|
443
542
|
end
|
|
444
543
|
|
|
544
|
+
class InternalUacSettings < Telnyx::Internal::Type::BaseModel
|
|
545
|
+
# @!attribute destination_uri
|
|
546
|
+
# The SIP URI that Telnyx will call when handling an inbound request from the
|
|
547
|
+
# external peer. Do not include a `sip:` prefix. The value must be in the format
|
|
548
|
+
# `userinfo@<subdomain.>sip.telnyx.com` or
|
|
549
|
+
# `userinfo@<subdomain.>sipdev.telnyx.com`; the userinfo portion may contain only
|
|
550
|
+
# letters, digits, hyphens, and underscores.
|
|
551
|
+
#
|
|
552
|
+
# @return [String, nil]
|
|
553
|
+
optional :destination_uri, String
|
|
554
|
+
|
|
555
|
+
# @!method initialize(destination_uri: nil)
|
|
556
|
+
# Some parameter documentations has been truncated, see
|
|
557
|
+
# {Telnyx::Models::UacConnectionCreateParams::InternalUacSettings} for more
|
|
558
|
+
# details.
|
|
559
|
+
#
|
|
560
|
+
# Internal Telnyx-side settings for a UAC connection.
|
|
561
|
+
#
|
|
562
|
+
# @param destination_uri [String] The SIP URI that Telnyx will call when handling an inbound request from the exte
|
|
563
|
+
end
|
|
564
|
+
|
|
445
565
|
# Controls when noise suppression is applied to calls. When set to 'inbound',
|
|
446
566
|
# noise suppression is applied to incoming audio. When set to 'outbound', it's
|
|
447
567
|
# applied to outgoing audio. When set to 'both', it's applied in both directions.
|
|
@@ -458,6 +578,132 @@ module Telnyx
|
|
|
458
578
|
# @return [Array<Symbol>]
|
|
459
579
|
end
|
|
460
580
|
|
|
581
|
+
class Outbound < Telnyx::Internal::Type::BaseModel
|
|
582
|
+
# @!attribute ani_override
|
|
583
|
+
# Set a phone number as the ani_override value to override caller id number on
|
|
584
|
+
# outbound calls.
|
|
585
|
+
#
|
|
586
|
+
# @return [String, nil]
|
|
587
|
+
optional :ani_override, String
|
|
588
|
+
|
|
589
|
+
# @!attribute ani_override_type
|
|
590
|
+
# Specifies when we apply your ani_override setting. Only applies when
|
|
591
|
+
# ani_override is not blank.
|
|
592
|
+
#
|
|
593
|
+
# @return [Symbol, Telnyx::Models::UacConnectionCreateParams::Outbound::AniOverrideType, nil]
|
|
594
|
+
optional :ani_override_type, enum: -> { Telnyx::UacConnectionCreateParams::Outbound::AniOverrideType }
|
|
595
|
+
|
|
596
|
+
# @!attribute call_parking_enabled
|
|
597
|
+
# Forces all SIP calls originated on this connection to be "parked" instead of
|
|
598
|
+
# "bridged" to the destination specified on the URI. Parked calls will return
|
|
599
|
+
# ringback to the caller and will await for a Call Control command to define which
|
|
600
|
+
# action will be taken next.
|
|
601
|
+
#
|
|
602
|
+
# @return [Boolean, nil]
|
|
603
|
+
optional :call_parking_enabled, Telnyx::Internal::Type::Boolean, nil?: true
|
|
604
|
+
|
|
605
|
+
# @!attribute channel_limit
|
|
606
|
+
# When set, this will limit the total number of outbound calls to phone numbers
|
|
607
|
+
# associated with this connection.
|
|
608
|
+
#
|
|
609
|
+
# @return [Integer, nil]
|
|
610
|
+
optional :channel_limit, Integer
|
|
611
|
+
|
|
612
|
+
# @!attribute generate_ringback_tone
|
|
613
|
+
# Generate ringback tone through 183 session progress message with early media.
|
|
614
|
+
#
|
|
615
|
+
# @return [Boolean, nil]
|
|
616
|
+
optional :generate_ringback_tone, Telnyx::Internal::Type::Boolean
|
|
617
|
+
|
|
618
|
+
# @!attribute instant_ringback_enabled
|
|
619
|
+
# When set, ringback will not wait for indication before sending ringback tone to
|
|
620
|
+
# calling party.
|
|
621
|
+
#
|
|
622
|
+
# @return [Boolean, nil]
|
|
623
|
+
optional :instant_ringback_enabled, Telnyx::Internal::Type::Boolean
|
|
624
|
+
|
|
625
|
+
# @!attribute localization
|
|
626
|
+
# A 2-character country code specifying the country whose national dialing rules
|
|
627
|
+
# should be used. For example, if set to `US` then any US number can be dialed
|
|
628
|
+
# without preprending +1 to the number. When left blank, Telnyx will try US and GB
|
|
629
|
+
# dialing rules, in that order, by default.
|
|
630
|
+
#
|
|
631
|
+
# @return [String, nil]
|
|
632
|
+
optional :localization, String
|
|
633
|
+
|
|
634
|
+
# @!attribute outbound_voice_profile_id
|
|
635
|
+
# Identifies the associated outbound voice profile.
|
|
636
|
+
#
|
|
637
|
+
# @return [String, nil]
|
|
638
|
+
optional :outbound_voice_profile_id, String
|
|
639
|
+
|
|
640
|
+
# @!attribute t38_reinvite_source
|
|
641
|
+
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
642
|
+
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
643
|
+
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
644
|
+
# expected to send the t.38 reinvite.
|
|
645
|
+
#
|
|
646
|
+
# @return [Symbol, Telnyx::Models::UacConnectionCreateParams::Outbound::T38ReinviteSource, nil]
|
|
647
|
+
optional :t38_reinvite_source, enum: -> { Telnyx::UacConnectionCreateParams::Outbound::T38ReinviteSource }
|
|
648
|
+
|
|
649
|
+
# @!method initialize(ani_override: nil, ani_override_type: nil, call_parking_enabled: nil, channel_limit: nil, generate_ringback_tone: nil, instant_ringback_enabled: nil, localization: nil, outbound_voice_profile_id: nil, t38_reinvite_source: nil)
|
|
650
|
+
# Some parameter documentations has been truncated, see
|
|
651
|
+
# {Telnyx::Models::UacConnectionCreateParams::Outbound} for more details.
|
|
652
|
+
#
|
|
653
|
+
# @param ani_override [String] Set a phone number as the ani_override value to override caller id number on out
|
|
654
|
+
#
|
|
655
|
+
# @param ani_override_type [Symbol, Telnyx::Models::UacConnectionCreateParams::Outbound::AniOverrideType] Specifies when we apply your ani_override setting. Only applies when ani_overrid
|
|
656
|
+
#
|
|
657
|
+
# @param call_parking_enabled [Boolean, nil] Forces all SIP calls originated on this connection to be "parked" instead of "br
|
|
658
|
+
#
|
|
659
|
+
# @param channel_limit [Integer] When set, this will limit the total number of outbound calls to phone numbers as
|
|
660
|
+
#
|
|
661
|
+
# @param generate_ringback_tone [Boolean] Generate ringback tone through 183 session progress message with early media.
|
|
662
|
+
#
|
|
663
|
+
# @param instant_ringback_enabled [Boolean] When set, ringback will not wait for indication before sending ringback tone to
|
|
664
|
+
#
|
|
665
|
+
# @param localization [String] A 2-character country code specifying the country whose national dialing rules s
|
|
666
|
+
#
|
|
667
|
+
# @param outbound_voice_profile_id [String] Identifies the associated outbound voice profile.
|
|
668
|
+
#
|
|
669
|
+
# @param t38_reinvite_source [Symbol, Telnyx::Models::UacConnectionCreateParams::Outbound::T38ReinviteSource] This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
670
|
+
|
|
671
|
+
# Specifies when we apply your ani_override setting. Only applies when
|
|
672
|
+
# ani_override is not blank.
|
|
673
|
+
#
|
|
674
|
+
# @see Telnyx::Models::UacConnectionCreateParams::Outbound#ani_override_type
|
|
675
|
+
module AniOverrideType
|
|
676
|
+
extend Telnyx::Internal::Type::Enum
|
|
677
|
+
|
|
678
|
+
ALWAYS = :always
|
|
679
|
+
NORMAL = :normal
|
|
680
|
+
EMERGENCY = :emergency
|
|
681
|
+
|
|
682
|
+
# @!method self.values
|
|
683
|
+
# @return [Array<Symbol>]
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
687
|
+
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
688
|
+
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
689
|
+
# expected to send the t.38 reinvite.
|
|
690
|
+
#
|
|
691
|
+
# @see Telnyx::Models::UacConnectionCreateParams::Outbound#t38_reinvite_source
|
|
692
|
+
module T38ReinviteSource
|
|
693
|
+
extend Telnyx::Internal::Type::Enum
|
|
694
|
+
|
|
695
|
+
TELNYX = :telnyx
|
|
696
|
+
CUSTOMER = :customer
|
|
697
|
+
DISABLED = :disabled
|
|
698
|
+
PASSTHRU = :passthru
|
|
699
|
+
CALLER_PASSTHRU = :"caller-passthru"
|
|
700
|
+
CALLEE_PASSTHRU = :"callee-passthru"
|
|
701
|
+
|
|
702
|
+
# @!method self.values
|
|
703
|
+
# @return [Array<Symbol>]
|
|
704
|
+
end
|
|
705
|
+
end
|
|
706
|
+
|
|
461
707
|
# This feature enables inbound SIP URI calls to your Credential Auth Connection.
|
|
462
708
|
# If enabled for all (unrestricted) then anyone who calls the SIP URI
|
|
463
709
|
# <your-username>@telnyx.com will be connected to your Connection. You can also
|