Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -19,13 +19,13 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe
<dependency>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.45.3</version>
<version>5.46.0</version>
</dependency>
```

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
Expand Down
2 changes: 1 addition & 1 deletion pom.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Written manually.

version=5.45.3
version=5.46.0
groupId=com.plivo
artifactId=plivo-java

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.45.3</version>
<version>5.46.0</version>
<name>plivo-java</name>
<description>A Java SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML</description>
<licenses>
Expand Down
59 changes: 59 additions & 0 deletions src/main/java/com/plivo/api/models/call/CallCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ public class CallCreator extends VoiceCreator<CallCreateResponse> {
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<String, String> sipHeaders;
private Long ringTimeout;
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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<String, String> sipHeaders) {
this.sipHeaders = sipHeaders;
return this;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/plivo/api/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.45.3
5.46.0