telnyx 5.116.0 → 5.117.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67eff50691848f3bf67019c6782403c21090b185de56560afe7c55138cd744cf
4
- data.tar.gz: be82ebdb72a02de4e5ccd30604e8d061fb8500bc0406a216484f0ccc010a8f92
3
+ metadata.gz: a2d11ebb6a136e5761fdabfb0310f614ec8dd25f19e9a6d904bb908a8ab32ba1
4
+ data.tar.gz: 6937d70cef0017e78da74fb7e0f5ba113158f258727c47e1e26329fd9068df42
5
5
  SHA512:
6
- metadata.gz: ec5fcd8046103ce4dd0e0b16a1818007944f577ff0f00e82d9b8df67e4b64f075c8e6a97f769b5fb58bb11837fe8c6aaff31c63d1ce0a0fb633e4fada7afb923
7
- data.tar.gz: 6525b3273287d867b611abbdf3c07e736c3c7aa53c24b2c55ce28a6e7b9e89575f8aa353c0ad92ad5d4145920b4b3482f783d4406fb3a75fcfb348c95528210e
6
+ metadata.gz: 1b672b72def3635919dacabc7603d0a23d72c45cab304a78971447f9a217090c6c34a82bdca6c7994b8c94e0122f5074af03ea6cf555355034542e27fda51e1b
7
+ data.tar.gz: 1075538ac99d166f6c96118fa0f4b7ffd2d264bde077dad2c1407546d8e5bb7438e40865deb0f6f4f7430a96ea49c9d7af94693be7ed8ad1c8d7b25ae5523e28
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.117.0 (2026-05-22)
4
+
5
+ Full Changelog: [v5.116.0...v5.117.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.116.0...v5.117.0)
6
+
7
+ ### Features
8
+
9
+ * TELAPPS-72: document send_digits_on_answer on Dial + Transfer ([f7ae042](https://github.com/team-telnyx/telnyx-ruby/commit/f7ae042cef4897a4dfda4853817d81fe510675ee))
10
+
3
11
  ## 5.116.0 (2026-05-20)
4
12
 
5
13
  Full Changelog: [v5.115.0...v5.116.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.115.0...v5.116.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.116.0"
27
+ gem "telnyx", "~> 5.117.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -27,7 +27,12 @@ module Telnyx
27
27
  # `;secure=srtp` to enable SRTP media encryption for that endpoint, or
28
28
  # `;secure=dtls` to enable DTLS media encryption for that endpoint. If
29
29
  # `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
30
- # per-endpoint `secure` URI parameter.
30
+ # per-endpoint `secure` URI parameter. For a single string destination, you may
31
+ # append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
32
+ # digits as DTMF once the called party answers — equivalent to setting
33
+ # `send_digits_on_answer` separately. If both are present, the explicit
34
+ # `send_digits_on_answer` parameter takes precedence. This shorthand is not
35
+ # supported when `to` is an array.
31
36
  #
32
37
  # @return [String, Array<String>]
33
38
  required :to, union: -> { Telnyx::CallDialParams::To }
@@ -272,6 +277,18 @@ module Telnyx
272
277
  # @return [Symbol, Telnyx::Models::CallDialParams::RecordTrim, nil]
273
278
  optional :record_trim, enum: -> { Telnyx::CallDialParams::RecordTrim }
274
279
 
280
+ # @!attribute send_digits_on_answer
281
+ # DTMF digits to send automatically after the called party answers. Useful for
282
+ # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
283
+ # called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
284
+ # (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF is
285
+ # sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
286
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
287
+ # precedence.
288
+ #
289
+ # @return [String, nil]
290
+ optional :send_digits_on_answer, String
291
+
275
292
  # @!attribute send_silence_when_idle
276
293
  # Generate silence RTP packets when no transmission available.
277
294
  #
@@ -458,7 +475,7 @@ module Telnyx
458
475
  # @return [Symbol, Telnyx::Models::CallDialParams::WebhookURLsMethod, nil]
459
476
  optional :webhook_urls_method, enum: -> { Telnyx::CallDialParams::WebhookURLsMethod }
460
477
 
461
- # @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
478
+ # @!method initialize(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_digits_on_answer: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
462
479
  # Some parameter documentations has been truncated, see
463
480
  # {Telnyx::Models::CallDialParams} for more details.
464
481
  #
@@ -528,6 +545,8 @@ module Telnyx
528
545
  #
529
546
  # @param record_trim [Symbol, Telnyx::Models::CallDialParams::RecordTrim] When set to `trim-silence`, silence will be removed from the beginning and end o
530
547
  #
548
+ # @param send_digits_on_answer [String] DTMF digits to send automatically after the called party answers. Useful for rea
549
+ #
531
550
  # @param send_silence_when_idle [Boolean] Generate silence RTP packets when no transmission available.
532
551
  #
533
552
  # @param sip_auth_password [String] SIP Authentication password used for SIP challenges.
@@ -590,7 +609,12 @@ module Telnyx
590
609
  # `;secure=srtp` to enable SRTP media encryption for that endpoint, or
591
610
  # `;secure=dtls` to enable DTLS media encryption for that endpoint. If
592
611
  # `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
593
- # per-endpoint `secure` URI parameter.
612
+ # per-endpoint `secure` URI parameter. For a single string destination, you may
613
+ # append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
614
+ # digits as DTMF once the called party answers — equivalent to setting
615
+ # `send_digits_on_answer` separately. If both are present, the explicit
616
+ # `send_digits_on_answer` parameter takes precedence. This shorthand is not
617
+ # supported when `to` is an array.
594
618
  module To
595
619
  extend Telnyx::Internal::Type::Union
596
620
 
@@ -18,7 +18,11 @@ module Telnyx
18
18
  # `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that
19
19
  # endpoint, or `;secure=dtls` to enable DTLS media encryption for that endpoint.
20
20
  # If `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
21
- # per-endpoint `secure` URI parameter.
21
+ # per-endpoint `secure` URI parameter. You may also append a comma followed by
22
+ # DTMF digits (e.g. `+18004247767,200`) to play those digits as DTMF once the
23
+ # transfer destination answers — equivalent to setting `send_digits_on_answer`
24
+ # separately. If both are present, the explicit `send_digits_on_answer` parameter
25
+ # takes precedence.
22
26
  #
23
27
  # @return [String]
24
28
  required :to, String
@@ -207,6 +211,18 @@ module Telnyx
207
211
  # @return [Symbol, Telnyx::Models::Calls::ActionTransferParams::RecordTrim, nil]
208
212
  optional :record_trim, enum: -> { Telnyx::Calls::ActionTransferParams::RecordTrim }
209
213
 
214
+ # @!attribute send_digits_on_answer
215
+ # DTMF digits to send automatically after the transfer destination answers. Useful
216
+ # for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
217
+ # the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
218
+ # `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
219
+ # is sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
220
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
221
+ # precedence.
222
+ #
223
+ # @return [String, nil]
224
+ optional :send_digits_on_answer, String
225
+
210
226
  # @!attribute sip_auth_password
211
227
  # SIP Authentication password used for SIP challenges.
212
228
  #
@@ -308,7 +324,7 @@ module Telnyx
308
324
  # @return [Symbol, Telnyx::Models::Calls::ActionTransferParams::WebhookURLsMethod, nil]
309
325
  optional :webhook_urls_method, enum: -> { Telnyx::Calls::ActionTransferParams::WebhookURLsMethod }
310
326
 
311
- # @!method initialize(call_control_id:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
327
+ # @!method initialize(call_control_id:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_digits_on_answer: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
312
328
  # Some parameter documentations has been truncated, see
313
329
  # {Telnyx::Models::Calls::ActionTransferParams} for more details.
314
330
  #
@@ -362,6 +378,8 @@ module Telnyx
362
378
  #
363
379
  # @param record_trim [Symbol, Telnyx::Models::Calls::ActionTransferParams::RecordTrim] When set to `trim-silence`, silence will be removed from the beginning and end o
364
380
  #
381
+ # @param send_digits_on_answer [String] DTMF digits to send automatically after the transfer destination answers. Useful
382
+ #
365
383
  # @param sip_auth_password [String] SIP Authentication password used for SIP challenges.
366
384
  #
367
385
  # @param sip_auth_username [String] SIP Authentication username used for SIP challenges.
@@ -1715,7 +1715,7 @@ module Telnyx
1715
1715
  # - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium`
1716
1716
  # was requested and a beep was detected
1717
1717
  #
1718
- # @overload transfer(call_control_id, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
1718
+ # @overload transfer(call_control_id, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, audio_url: nil, client_state: nil, command_id: nil, custom_headers: nil, early_media: nil, from: nil, from_display_name: nil, media_encryption: nil, media_name: nil, mute_dtmf: nil, park_after_unbridge: nil, preferred_codecs: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_digits_on_answer: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, target_leg_client_state: nil, time_limit_secs: nil, timeout_secs: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
1719
1719
  #
1720
1720
  # @param call_control_id [String] Unique identifier and token for controlling the call
1721
1721
  #
@@ -1767,6 +1767,8 @@ module Telnyx
1767
1767
  #
1768
1768
  # @param record_trim [Symbol, Telnyx::Models::Calls::ActionTransferParams::RecordTrim] When set to `trim-silence`, silence will be removed from the beginning and end o
1769
1769
  #
1770
+ # @param send_digits_on_answer [String] DTMF digits to send automatically after the transfer destination answers. Useful
1771
+ #
1770
1772
  # @param sip_auth_password [String] SIP Authentication password used for SIP challenges.
1771
1773
  #
1772
1774
  # @param sip_auth_username [String] SIP Authentication username used for SIP challenges.
@@ -35,7 +35,7 @@ module Telnyx
35
35
  # When the `record` parameter is set to `record-from-answer`, the response will
36
36
  # include a `recording_id` field.
37
37
  #
38
- # @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
38
+ # @overload dial(connection_id:, from:, to:, answering_machine_detection: nil, answering_machine_detection_config: nil, assistant: nil, audio_url: nil, billing_group_id: nil, bridge_intent: nil, bridge_on_answer: nil, client_state: nil, command_id: nil, conference_config: nil, custom_headers: nil, deepfake_detection: nil, dialogflow_config: nil, enable_dialogflow: nil, from_display_name: nil, link_to: nil, media_encryption: nil, media_name: nil, park_after_unbridge: nil, preferred_codecs: nil, prevent_double_bridge: nil, privacy: nil, record: nil, record_channels: nil, record_custom_file_name: nil, record_format: nil, record_max_length: nil, record_timeout_secs: nil, record_track: nil, record_trim: nil, send_digits_on_answer: nil, send_silence_when_idle: nil, sip_auth_password: nil, sip_auth_username: nil, sip_headers: nil, sip_region: nil, sip_transport_protocol: nil, sound_modifications: nil, stream_auth_token: nil, stream_bidirectional_codec: nil, stream_bidirectional_mode: nil, stream_bidirectional_sampling_rate: nil, stream_bidirectional_target_legs: nil, stream_codec: nil, stream_establish_before_call_originate: nil, stream_track: nil, stream_url: nil, supervise_call_control_id: nil, supervisor_role: nil, time_limit_secs: nil, timeout_secs: nil, transcription: nil, transcription_config: nil, webhook_retries_policies: nil, webhook_url: nil, webhook_url_method: nil, webhook_urls: nil, webhook_urls_method: nil, request_options: {})
39
39
  #
40
40
  # @param connection_id [String] The ID of the Call Control App (formerly ID of the connection) to be used when d
41
41
  #
@@ -103,6 +103,8 @@ module Telnyx
103
103
  #
104
104
  # @param record_trim [Symbol, Telnyx::Models::CallDialParams::RecordTrim] When set to `trim-silence`, silence will be removed from the beginning and end o
105
105
  #
106
+ # @param send_digits_on_answer [String] DTMF digits to send automatically after the called party answers. Useful for rea
107
+ #
106
108
  # @param send_silence_when_idle [Boolean] Generate silence RTP packets when no transmission available.
107
109
  #
108
110
  # @param sip_auth_password [String] SIP Authentication password used for SIP challenges.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.116.0"
4
+ VERSION = "5.117.0"
5
5
  end
@@ -26,7 +26,12 @@ module Telnyx
26
26
  # `;secure=srtp` to enable SRTP media encryption for that endpoint, or
27
27
  # `;secure=dtls` to enable DTLS media encryption for that endpoint. If
28
28
  # `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
29
- # per-endpoint `secure` URI parameter.
29
+ # per-endpoint `secure` URI parameter. For a single string destination, you may
30
+ # append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
31
+ # digits as DTMF once the called party answers — equivalent to setting
32
+ # `send_digits_on_answer` separately. If both are present, the explicit
33
+ # `send_digits_on_answer` parameter takes precedence. This shorthand is not
34
+ # supported when `to` is an array.
30
35
  sig { returns(Telnyx::CallDialParams::To::Variants) }
31
36
  attr_accessor :to
32
37
 
@@ -347,6 +352,19 @@ module Telnyx
347
352
  end
348
353
  attr_writer :record_trim
349
354
 
355
+ # DTMF digits to send automatically after the called party answers. Useful for
356
+ # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
357
+ # called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
358
+ # (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF is
359
+ # sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
360
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
361
+ # precedence.
362
+ sig { returns(T.nilable(String)) }
363
+ attr_reader :send_digits_on_answer
364
+
365
+ sig { params(send_digits_on_answer: String).void }
366
+ attr_writer :send_digits_on_answer
367
+
350
368
  # Generate silence RTP packets when no transmission available.
351
369
  sig { returns(T.nilable(T::Boolean)) }
352
370
  attr_reader :send_silence_when_idle
@@ -670,6 +688,7 @@ module Telnyx
670
688
  record_timeout_secs: Integer,
671
689
  record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
672
690
  record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
691
+ send_digits_on_answer: String,
673
692
  send_silence_when_idle: T::Boolean,
674
693
  sip_auth_password: String,
675
694
  sip_auth_username: String,
@@ -723,7 +742,12 @@ module Telnyx
723
742
  # `;secure=srtp` to enable SRTP media encryption for that endpoint, or
724
743
  # `;secure=dtls` to enable DTLS media encryption for that endpoint. If
725
744
  # `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
726
- # per-endpoint `secure` URI parameter.
745
+ # per-endpoint `secure` URI parameter. For a single string destination, you may
746
+ # append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
747
+ # digits as DTMF once the called party answers — equivalent to setting
748
+ # `send_digits_on_answer` separately. If both are present, the explicit
749
+ # `send_digits_on_answer` parameter takes precedence. This shorthand is not
750
+ # supported when `to` is an array.
727
751
  to:,
728
752
  # Enables Answering Machine Detection. Telnyx offers Premium and Standard
729
753
  # detections. With Premium detection, when a call is answered, Telnyx runs
@@ -844,6 +868,14 @@ module Telnyx
844
868
  # When set to `trim-silence`, silence will be removed from the beginning and end
845
869
  # of the recording.
846
870
  record_trim: nil,
871
+ # DTMF digits to send automatically after the called party answers. Useful for
872
+ # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
873
+ # called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
874
+ # (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF is
875
+ # sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
876
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
877
+ # precedence.
878
+ send_digits_on_answer: nil,
847
879
  # Generate silence RTP packets when no transmission available.
848
880
  send_silence_when_idle: nil,
849
881
  # SIP Authentication password used for SIP challenges.
@@ -963,6 +995,7 @@ module Telnyx
963
995
  record_timeout_secs: Integer,
964
996
  record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
965
997
  record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
998
+ send_digits_on_answer: String,
966
999
  send_silence_when_idle: T::Boolean,
967
1000
  sip_auth_password: String,
968
1001
  sip_auth_username: String,
@@ -1010,7 +1043,12 @@ module Telnyx
1010
1043
  # `;secure=srtp` to enable SRTP media encryption for that endpoint, or
1011
1044
  # `;secure=dtls` to enable DTLS media encryption for that endpoint. If
1012
1045
  # `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
1013
- # per-endpoint `secure` URI parameter.
1046
+ # per-endpoint `secure` URI parameter. For a single string destination, you may
1047
+ # append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
1048
+ # digits as DTMF once the called party answers — equivalent to setting
1049
+ # `send_digits_on_answer` separately. If both are present, the explicit
1050
+ # `send_digits_on_answer` parameter takes precedence. This shorthand is not
1051
+ # supported when `to` is an array.
1014
1052
  module To
1015
1053
  extend Telnyx::Internal::Type::Union
1016
1054
 
@@ -22,7 +22,11 @@ module Telnyx
22
22
  # `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that
23
23
  # endpoint, or `;secure=dtls` to enable DTLS media encryption for that endpoint.
24
24
  # If `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
25
- # per-endpoint `secure` URI parameter.
25
+ # per-endpoint `secure` URI parameter. You may also append a comma followed by
26
+ # DTMF digits (e.g. `+18004247767,200`) to play those digits as DTMF once the
27
+ # transfer destination answers — equivalent to setting `send_digits_on_answer`
28
+ # separately. If both are present, the explicit `send_digits_on_answer` parameter
29
+ # takes precedence.
26
30
  sig { returns(String) }
27
31
  attr_accessor :to
28
32
 
@@ -332,6 +336,19 @@ module Telnyx
332
336
  end
333
337
  attr_writer :record_trim
334
338
 
339
+ # DTMF digits to send automatically after the transfer destination answers. Useful
340
+ # for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
341
+ # the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
342
+ # `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
343
+ # is sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
344
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
345
+ # precedence.
346
+ sig { returns(T.nilable(String)) }
347
+ attr_reader :send_digits_on_answer
348
+
349
+ sig { params(send_digits_on_answer: String).void }
350
+ attr_writer :send_digits_on_answer
351
+
335
352
  # SIP Authentication password used for SIP challenges.
336
353
  sig { returns(T.nilable(String)) }
337
354
  attr_reader :sip_auth_password
@@ -540,6 +557,7 @@ module Telnyx
540
557
  Telnyx::Calls::ActionTransferParams::RecordTrack::OrSymbol,
541
558
  record_trim:
542
559
  Telnyx::Calls::ActionTransferParams::RecordTrim::OrSymbol,
560
+ send_digits_on_answer: String,
543
561
  sip_auth_password: String,
544
562
  sip_auth_username: String,
545
563
  sip_headers: T::Array[Telnyx::SipHeader::OrHash],
@@ -571,7 +589,11 @@ module Telnyx
571
589
  # `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that
572
590
  # endpoint, or `;secure=dtls` to enable DTLS media encryption for that endpoint.
573
591
  # If `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
574
- # per-endpoint `secure` URI parameter.
592
+ # per-endpoint `secure` URI parameter. You may also append a comma followed by
593
+ # DTMF digits (e.g. `+18004247767,200`) to play those digits as DTMF once the
594
+ # transfer destination answers — equivalent to setting `send_digits_on_answer`
595
+ # separately. If both are present, the explicit `send_digits_on_answer` parameter
596
+ # takes precedence.
575
597
  to:,
576
598
  # Enables Answering Machine Detection. When a call is answered, Telnyx runs
577
599
  # real-time detection to determine if it was picked up by a human or a machine and
@@ -663,6 +685,14 @@ module Telnyx
663
685
  # When set to `trim-silence`, silence will be removed from the beginning and end
664
686
  # of the recording.
665
687
  record_trim: nil,
688
+ # DTMF digits to send automatically after the transfer destination answers. Useful
689
+ # for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
690
+ # the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
691
+ # `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
692
+ # is sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
693
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
694
+ # precedence.
695
+ send_digits_on_answer: nil,
666
696
  # SIP Authentication password used for SIP challenges.
667
697
  sip_auth_password: nil,
668
698
  # SIP Authentication username used for SIP challenges.
@@ -747,6 +777,7 @@ module Telnyx
747
777
  Telnyx::Calls::ActionTransferParams::RecordTrack::OrSymbol,
748
778
  record_trim:
749
779
  Telnyx::Calls::ActionTransferParams::RecordTrim::OrSymbol,
780
+ send_digits_on_answer: String,
750
781
  sip_auth_password: String,
751
782
  sip_auth_username: String,
752
783
  sip_headers: T::Array[Telnyx::SipHeader],
@@ -2154,6 +2154,7 @@ module Telnyx
2154
2154
  Telnyx::Calls::ActionTransferParams::RecordTrack::OrSymbol,
2155
2155
  record_trim:
2156
2156
  Telnyx::Calls::ActionTransferParams::RecordTrim::OrSymbol,
2157
+ send_digits_on_answer: String,
2157
2158
  sip_auth_password: String,
2158
2159
  sip_auth_username: String,
2159
2160
  sip_headers: T::Array[Telnyx::SipHeader::OrHash],
@@ -2186,7 +2187,11 @@ module Telnyx
2186
2187
  # `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that
2187
2188
  # endpoint, or `;secure=dtls` to enable DTLS media encryption for that endpoint.
2188
2189
  # If `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
2189
- # per-endpoint `secure` URI parameter.
2190
+ # per-endpoint `secure` URI parameter. You may also append a comma followed by
2191
+ # DTMF digits (e.g. `+18004247767,200`) to play those digits as DTMF once the
2192
+ # transfer destination answers — equivalent to setting `send_digits_on_answer`
2193
+ # separately. If both are present, the explicit `send_digits_on_answer` parameter
2194
+ # takes precedence.
2190
2195
  to:,
2191
2196
  # Enables Answering Machine Detection. When a call is answered, Telnyx runs
2192
2197
  # real-time detection to determine if it was picked up by a human or a machine and
@@ -2278,6 +2283,14 @@ module Telnyx
2278
2283
  # When set to `trim-silence`, silence will be removed from the beginning and end
2279
2284
  # of the recording.
2280
2285
  record_trim: nil,
2286
+ # DTMF digits to send automatically after the transfer destination answers. Useful
2287
+ # for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
2288
+ # the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
2289
+ # `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
2290
+ # is sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
2291
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
2292
+ # precedence.
2293
+ send_digits_on_answer: nil,
2281
2294
  # SIP Authentication password used for SIP challenges.
2282
2295
  sip_auth_password: nil,
2283
2296
  # SIP Authentication username used for SIP challenges.
@@ -68,6 +68,7 @@ module Telnyx
68
68
  record_timeout_secs: Integer,
69
69
  record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
70
70
  record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
71
+ send_digits_on_answer: String,
71
72
  send_silence_when_idle: T::Boolean,
72
73
  sip_auth_password: String,
73
74
  sip_auth_username: String,
@@ -121,7 +122,12 @@ module Telnyx
121
122
  # `;secure=srtp` to enable SRTP media encryption for that endpoint, or
122
123
  # `;secure=dtls` to enable DTLS media encryption for that endpoint. If
123
124
  # `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
124
- # per-endpoint `secure` URI parameter.
125
+ # per-endpoint `secure` URI parameter. For a single string destination, you may
126
+ # append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
127
+ # digits as DTMF once the called party answers — equivalent to setting
128
+ # `send_digits_on_answer` separately. If both are present, the explicit
129
+ # `send_digits_on_answer` parameter takes precedence. This shorthand is not
130
+ # supported when `to` is an array.
125
131
  to:,
126
132
  # Enables Answering Machine Detection. Telnyx offers Premium and Standard
127
133
  # detections. With Premium detection, when a call is answered, Telnyx runs
@@ -242,6 +248,14 @@ module Telnyx
242
248
  # When set to `trim-silence`, silence will be removed from the beginning and end
243
249
  # of the recording.
244
250
  record_trim: nil,
251
+ # DTMF digits to send automatically after the called party answers. Useful for
252
+ # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
253
+ # called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
254
+ # (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF is
255
+ # sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
256
+ # `to=+18004247767,200`); if both forms are present, this explicit field takes
257
+ # precedence.
258
+ send_digits_on_answer: nil,
245
259
  # Generate silence RTP packets when no transmission available.
246
260
  send_silence_when_idle: nil,
247
261
  # SIP Authentication password used for SIP challenges.
@@ -35,6 +35,7 @@ module Telnyx
35
35
  record_timeout_secs: Integer,
36
36
  record_track: Telnyx::Models::CallDialParams::record_track,
37
37
  record_trim: Telnyx::Models::CallDialParams::record_trim,
38
+ send_digits_on_answer: String,
38
39
  send_silence_when_idle: bool,
39
40
  sip_auth_password: String,
40
41
  sip_auth_username: String,
@@ -223,6 +224,10 @@ module Telnyx
223
224
  Telnyx::Models::CallDialParams::record_trim
224
225
  ) -> Telnyx::Models::CallDialParams::record_trim
225
226
 
227
+ attr_reader send_digits_on_answer: String?
228
+
229
+ def send_digits_on_answer=: (String) -> String
230
+
226
231
  attr_reader send_silence_when_idle: bool?
227
232
 
228
233
  def send_silence_when_idle=: (bool) -> bool
@@ -395,6 +400,7 @@ module Telnyx
395
400
  ?record_timeout_secs: Integer,
396
401
  ?record_track: Telnyx::Models::CallDialParams::record_track,
397
402
  ?record_trim: Telnyx::Models::CallDialParams::record_trim,
403
+ ?send_digits_on_answer: String,
398
404
  ?send_silence_when_idle: bool,
399
405
  ?sip_auth_password: String,
400
406
  ?sip_auth_username: String,
@@ -459,6 +465,7 @@ module Telnyx
459
465
  record_timeout_secs: Integer,
460
466
  record_track: Telnyx::Models::CallDialParams::record_track,
461
467
  record_trim: Telnyx::Models::CallDialParams::record_trim,
468
+ send_digits_on_answer: String,
462
469
  send_silence_when_idle: bool,
463
470
  sip_auth_password: String,
464
471
  sip_auth_username: String,
@@ -28,6 +28,7 @@ module Telnyx
28
28
  record_timeout_secs: Integer,
29
29
  record_track: Telnyx::Models::Calls::ActionTransferParams::record_track,
30
30
  record_trim: Telnyx::Models::Calls::ActionTransferParams::record_trim,
31
+ send_digits_on_answer: String,
31
32
  sip_auth_password: String,
32
33
  sip_auth_username: String,
33
34
  sip_headers: ::Array[Telnyx::SipHeader],
@@ -167,6 +168,10 @@ module Telnyx
167
168
  Telnyx::Models::Calls::ActionTransferParams::record_trim
168
169
  ) -> Telnyx::Models::Calls::ActionTransferParams::record_trim
169
170
 
171
+ attr_reader send_digits_on_answer: String?
172
+
173
+ def send_digits_on_answer=: (String) -> String
174
+
170
175
  attr_reader sip_auth_password: String?
171
176
 
172
177
  def sip_auth_password=: (String) -> String
@@ -263,6 +268,7 @@ module Telnyx
263
268
  ?record_timeout_secs: Integer,
264
269
  ?record_track: Telnyx::Models::Calls::ActionTransferParams::record_track,
265
270
  ?record_trim: Telnyx::Models::Calls::ActionTransferParams::record_trim,
271
+ ?send_digits_on_answer: String,
266
272
  ?sip_auth_password: String,
267
273
  ?sip_auth_username: String,
268
274
  ?sip_headers: ::Array[Telnyx::SipHeader],
@@ -306,6 +312,7 @@ module Telnyx
306
312
  record_timeout_secs: Integer,
307
313
  record_track: Telnyx::Models::Calls::ActionTransferParams::record_track,
308
314
  record_trim: Telnyx::Models::Calls::ActionTransferParams::record_trim,
315
+ send_digits_on_answer: String,
309
316
  sip_auth_password: String,
310
317
  sip_auth_username: String,
311
318
  sip_headers: ::Array[Telnyx::SipHeader],
@@ -491,6 +491,7 @@ module Telnyx
491
491
  ?record_timeout_secs: Integer,
492
492
  ?record_track: Telnyx::Models::Calls::ActionTransferParams::record_track,
493
493
  ?record_trim: Telnyx::Models::Calls::ActionTransferParams::record_trim,
494
+ ?send_digits_on_answer: String,
494
495
  ?sip_auth_password: String,
495
496
  ?sip_auth_username: String,
496
497
  ?sip_headers: ::Array[Telnyx::SipHeader],
@@ -37,6 +37,7 @@ module Telnyx
37
37
  ?record_timeout_secs: Integer,
38
38
  ?record_track: Telnyx::Models::CallDialParams::record_track,
39
39
  ?record_trim: Telnyx::Models::CallDialParams::record_trim,
40
+ ?send_digits_on_answer: String,
40
41
  ?send_silence_when_idle: bool,
41
42
  ?sip_auth_password: String,
42
43
  ?sip_auth_username: String,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.116.0
4
+ version: 5.117.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-20 00:00:00.000000000 Z
11
+ date: 2026-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi