From dd654e4b05c87ffc0a1589073343527f6275e912 Mon Sep 17 00:00:00 2001 From: Prashant Pandey Date: Wed, 16 Apr 2025 13:30:11 +0530 Subject: [PATCH 1/2] VT-8890: Stereo recording parameter in Record API --- CHANGELOG.md | 4 ++++ src/Plivo/Resources/Call/CallInterface.php | 2 ++ src/Plivo/Version.php | 4 ++-- src/Plivo/XML/Record.php | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e158a80d..43ed9907 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.67.0](https://github.com/plivo/plivo-php/tree/v4.67.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.66.7](https://github.com/plivo/plivo-php/tree/v4.66.7) (2025-04-08) **Bug fix - Handle empty message_uuid array for async api** - Handle empty message_uuid array for async send sms api diff --git a/src/Plivo/Resources/Call/CallInterface.php b/src/Plivo/Resources/Call/CallInterface.php index c8c72c71..015502b8 100644 --- a/src/Plivo/Resources/Call/CallInterface.php +++ b/src/Plivo/Resources/Call/CallInterface.php @@ -422,6 +422,7 @@ public function transfer($liveCallUuid, array $optionalArgs = []) *
recording_duration_ms - duration in milliseconds of the recording. *
recording_start_ms - when the recording started (epoch time UTC) in milliseconds. *
recording_end_ms - when the recording ended (epoch time UTC) in milliseconds. + * + [string] record_channel_type - The type of channel for the recording (e.g., mono, stereo). Defaults to stereo. * @option options [String] :callback_method - The method which is used to invoke the callback_url URL. Defaults to POST. * @return CallRecording */ @@ -454,6 +455,7 @@ public function record($liveCallUuid, array $optionalArgs = []) *
recording_duration_ms - duration in milliseconds of the recording. *
recording_start_ms - when the recording started (epoch time UTC) in milliseconds. *
recording_end_ms - when the recording ended (epoch time UTC) in milliseconds. + * + [string] record_channel_type - The type of channel for the recording (e.g., mono, stereo). Defaults to stereo. * @option options [String] :callback_method - The method which is used to invoke the callback_url URL. Defaults to POST. * @return CallRecording * @throws PlivoValidationException diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index de4339bc..0cad1587 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -20,13 +20,13 @@ class Version /** * @const int PHP helper library minor version number */ - const MINOR = 66; + const MINOR = 67; /** * @const int PHP helper library patch number */ - const PATCH = 7; + const PATCH = 0; /** * @return string diff --git a/src/Plivo/XML/Record.php b/src/Plivo/XML/Record.php index 955b3174..b9ee1341 100644 --- a/src/Plivo/XML/Record.php +++ b/src/Plivo/XML/Record.php @@ -25,7 +25,8 @@ class Record extends Element { 'callbackMethod', 'transcriptionType', 'transcriptionUrl', - 'transcriptionMethod' + 'transcriptionMethod', + 'recordChannelType' ]; /** From a995ebb21ededcd10d50d7469be5c854b655243f Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Plivo <85923934+manjunath-plivo@users.noreply.github.com> Date: Wed, 30 Apr 2025 13:01:08 +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 43ed9907..7a9c84fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [4.67.0](https://github.com/plivo/plivo-php/tree/v4.67.0) (2025-04-21) +## [4.67.0](https://github.com/plivo/plivo-php/tree/v4.67.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.