diff --git a/CHANGELOG.md b/CHANGELOG.md index 1add06c7..d1bc68e3 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) (2024-11-06) +**Feature - Adding few optional parameters to the existing machine detection params** +- Added six new optional machine detection params `machine_detection_maximum_speech_length`,`machine_detection_initial_silence`,`machine_detection_maximum_words`,`machine_detection_initial_greeting`,`machine_detection_silence`,`machine_detection_answer_time` + ## [5.45.3](https://github.com/plivo/plivo-java/tree/v5.45.3)(2024-10-23) **Feature - fraudCheck param in Create, Get and List Session** - Support for the `fraud_check` parameter in sms verify session request diff --git a/README.md b/README.md index 3aeffd32..db1ac890 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.3/plivo-java-5.45.3.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,13 +19,13 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe com.plivo plivo-java - 5.45.3 + 5.46.0 ``` If you are using Gradle, use the following line in your dependencies. ``` -compile 'com.plivo:plivo-java:5.45.3' +compile 'com.plivo:plivo-java:5.46.0' ``` ### To Install Beta release diff --git a/pom.properties b/pom.properties index 8ffe12a5..a8a5f621 100644 --- a/pom.properties +++ b/pom.properties @@ -1,6 +1,6 @@ # Written manually. -version=5.45.3 +version=5.46.0 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index 4ec14a90..83537335 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.45.3 + 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/CallCreator.java b/src/main/java/com/plivo/api/models/call/CallCreator.java index 9fdd3ea9..d441e159 100644 --- a/src/main/java/com/plivo/api/models/call/CallCreator.java +++ b/src/main/java/com/plivo/api/models/call/CallCreator.java @@ -30,6 +30,12 @@ public class CallCreator extends VoiceCreator { private Long machineDetectionTime; private String machineDetectionUrl; private String machineDetectionMethod; + private Long machineDetectionMaximumSpeechLength; + private Long machineDetectionInitialSilence; + private Long machineDetectionMaximumWords; + private Long machineDetectionInitialGreeting; + private Long machineDetectionSilence; + private Long machineDetectionAnswerTime; @JsonSerialize(using = MapToCommaListSerializer.class) private Map sipHeaders; private Long ringTimeout; @@ -217,6 +223,30 @@ public String machineDetectionMethod() { return this.machineDetectionMethod; } + public Long machineDetectionSilence() { + return this.machineDetectionSilence; + } + + public Long machineDetectionInitialSilence() { + return this.machineDetectionInitialSilence; + } + + public Long machineDetectionInitialGreeting() { + return this.machineDetectionInitialGreeting; + } + + public Long machineDetectionMaximumSpeechLength() { + return this.machineDetectionMaximumSpeechLength; + } + + public Long machineDetectionMaximumWords() { + return this.machineDetectionMaximumWords; + } + + public Long machineDetectionAnswerTime() { + return this.machineDetectionAnswerTime; + } + /** * @return List of SIP headers in the form of 'key=value' pairs, separated by commas. */ @@ -337,6 +367,35 @@ public CallCreator machineDetectionMethod(final String machineDetectionMethod) { return this; } + public CallCreator machineDetectionMaximumWords(final Long machineDetectionMaximumWords) { + this.machineDetectionMaximumWords = machineDetectionMaximumWords; + return this; + } + + public CallCreator machineDetectionMaximumSpeechLength(final Long machineDetectionMaximumSpeechLength) { + this.machineDetectionMaximumSpeechLength = machineDetectionMaximumSpeechLength; + return this; + } + + public CallCreator machineDetectionInitialSilence(final Long machineDetectionInitialSilence) { + this.machineDetectionInitialSilence = machineDetectionInitialSilence; + return this; + } + public CallCreator machineDetectionSilence(final Long machineDetectionSilence) { + this.machineDetectionSilence = machineDetectionSilence; + return this; + } + + public CallCreator machineDetectionInitialGreeting(final Long machineDetectionInitialGreeting) { + this.machineDetectionInitialGreeting = machineDetectionInitialGreeting; + return this; + } + + public CallCreator machineDetectionAnswerTime(final Long machineDetectionAnswerTime) { + this.machineDetectionAnswerTime = machineDetectionAnswerTime; + return this; + } + public CallCreator sipHeaders(final Map sipHeaders) { this.sipHeaders = sipHeaders; return this; diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index d581d07b..5681375f 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.45.3 +5.46.0