From 6f3cb223d38141f82a724b95731da7de575e20db Mon Sep 17 00:00:00 2001 From: Prashant Pandey Date: Wed, 16 Apr 2025 12:47:25 +0530 Subject: [PATCH 1/2] VT-8890: Stereo recording parameter in Record API --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- pom.properties | 2 +- pom.xml | 2 +- .../api/models/call/actions/CallRecordCreator.java | 10 ++++++++++ src/main/java/com/plivo/api/xml/Record.java | 12 ++++++++++++ src/main/resources/com/plivo/api/version.txt | 2 +- 7 files changed, 31 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 384b1a44f..5c5f27c23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log +## [5.46.0](https://github.com/plivo/plivo-java/tree/v5.46.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. + ## [5.45.6](https://github.com/plivo/plivo-java/tree/v5.45.6) (2025-03-03) **Fix - Upgraded version for okhttp3 package.** - Upgraded version of the okhttp3 package . diff --git a/README.md b/README.md index 1fdef7daf..996b39009 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The Plivo Java SDK makes it simpler to integrate communications into your Java a ### To Install Stable release -You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.45.6/plivo-java-5.45.6.jar). +You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.46.0/plivo-java-5.46.0.jar). If you are using Maven, use the following XML to include the Plivo SDK as a dependency. @@ -19,7 +19,7 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe com.plivo plivo-java - 5.45.6 + 5.46.0 ``` diff --git a/pom.properties b/pom.properties index feaca3f1c..a8a5f621e 100644 --- a/pom.properties +++ b/pom.properties @@ -1,6 +1,6 @@ # Written manually. -version=5.45.6 +version=5.46.0 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index b934ee21a..6bed0e1cb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.45.5 + 5.46.0 plivo-java A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML diff --git a/src/main/java/com/plivo/api/models/call/actions/CallRecordCreator.java b/src/main/java/com/plivo/api/models/call/actions/CallRecordCreator.java index ec8bf104b..6e015fa90 100644 --- a/src/main/java/com/plivo/api/models/call/actions/CallRecordCreator.java +++ b/src/main/java/com/plivo/api/models/call/actions/CallRecordCreator.java @@ -16,6 +16,7 @@ public class CallRecordCreator extends VoiceCreator { private String transcriptionMethod; private String callbackUrl; private String callbackMethod; + private String recordChannelType; public CallRecordCreator(String id) { this.id = id; @@ -77,6 +78,11 @@ public CallRecordCreator callbackMethod(final String callbackMethod) { return this; } + public CallRecordCreator recordChannelType(final String recordChannelType) { + this.recordChannelType = recordChannelType; + return this; + } + public Integer timeLimit() { return this.timeLimit; } @@ -104,4 +110,8 @@ public String callbackUrl() { public String callbackMethod() { return this.callbackMethod; } + + public String recordChannelType() { + return this.recordChannelType; + } } \ No newline at end of file diff --git a/src/main/java/com/plivo/api/xml/Record.java b/src/main/java/com/plivo/api/xml/Record.java index 68f72aa50..e8b924aea 100644 --- a/src/main/java/com/plivo/api/xml/Record.java +++ b/src/main/java/com/plivo/api/xml/Record.java @@ -51,6 +51,9 @@ public class Record extends PlivoXml implements ResponseNestable { @XmlAttribute private String callbackMethod; + @XmlAttribute + private String recordChannelType; + public Record(String action) { this.action = action; } @@ -114,6 +117,10 @@ public String callbackMethod() { return this.callbackMethod; } + public String recordChannelType() { + return this.recordChannelType; + } + public Record method(final String method) { this.method = method; return this; @@ -183,4 +190,9 @@ public Record callbackMethod(final String callbackMethod) { this.callbackMethod = callbackMethod; return this; } + + public Record recordChannelType(final String recordChannelType) { + this.recordChannelType = recordChannelType; + return this; + } } diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 3c482d532..5681375f3 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.45.6 +5.46.0 From d17f8eee3389317f30ae6b7f154a068e9b3125df Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Plivo <85923934+manjunath-plivo@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:34: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 5c5f27c23..c33924cc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [5.46.0](https://github.com/plivo/plivo-java/tree/v5.46.0) (2025-04-21) +## [5.46.0](https://github.com/plivo/plivo-java/tree/v5.46.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.