From 04a72037724b652c1382cbde40cd2c6ff7e2e6ff Mon Sep 17 00:00:00 2001 From: Prashant Pandey Date: Wed, 16 Apr 2025 13:45:10 +0530 Subject: [PATCH 1/2] VT-8890: Stereo recording parameter in Record API --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/plivo/resources/calls.rb | 6 ++++++ lib/plivo/version.rb | 2 +- lib/plivo/xml/record.rb | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ba596cb..05de4159 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.62.0](https://github.com/plivo/plivo-ruby/tree/v4.62.0) (2025-04-21) +**Feature - New Param added for Start Recording API.** +- Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML. + ## [4.61.4](https://github.com/plivo/plivo-ruby/tree/v4.61.4) (2025-02-25) **Feature - Supporting parameter_name in WhatsApp Template .** - Supporting `parameter_name` in WhatsApp Template . diff --git a/README.md b/README.md index 15167597..30a3b50e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a Add this line to your application's Gemfile: ```ruby -gem 'plivo', '>= 4.61.4' +gem 'plivo', '>= 4.62.0' ``` And then execute: diff --git a/lib/plivo/resources/calls.rb b/lib/plivo/resources/calls.rb index 5385d5f6..b1f70802 100644 --- a/lib/plivo/resources/calls.rb +++ b/lib/plivo/resources/calls.rb @@ -99,6 +99,12 @@ def record(options = nil) params[:transcription_type] = options[:transcription_type] end + if options.key?(:record_channel_type) && + valid_param?(:record_channel_type, options[:record_channel_type], + [String, Symbol], true) + params[:record_channel_type] = options[:record_channel_type] + end + perform_action('Record', 'POST', params, true) end diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index 69b451f5..135abb8a 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.61.4".freeze + VERSION = "4.62.0".freeze end diff --git a/lib/plivo/xml/record.rb b/lib/plivo/xml/record.rb index 2ea93ef8..ede2546a 100644 --- a/lib/plivo/xml/record.rb +++ b/lib/plivo/xml/record.rb @@ -7,7 +7,7 @@ class Record < Element startOnDialAnswer redirect fileFormat callbackUrl callbackMethod transcriptionType transcriptionUrl - transcriptionMethod] + transcriptionMethod recordChannelType] def initialize(attributes = {}) super(nil, attributes) From 6ee9d3f744aafb4d41227a9c0ee1c0e79b6e1585 Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Plivo <85923934+manjunath-plivo@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:11:52 +0530 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05de4159..1ad2653f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [4.62.0](https://github.com/plivo/plivo-ruby/tree/v4.62.0) (2025-04-21) +## [4.62.0](https://github.com/plivo/plivo-ruby/tree/v4.62.0) (2025-04-30) **Feature - New Param added for Start Recording API.** - Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML.