From a12ff712faad41d55329f07c27e442ebfafcb50d Mon Sep 17 00:00:00 2001 From: abinaya-plivo Date: Wed, 11 Sep 2024 13:59:28 +0530 Subject: [PATCH 1/3] Machine detetction optional params added --- CHANGELOG.md | 5 +++++ src/Plivo/Resources/Call/CallInterface.php | 8 +++++++- src/Plivo/Version.php | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cae0508..60434ff5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [4.65.4](https://github.com/plivo/plivo-php/tree/v4.65.4)(2024-09-11) +**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` + + ## [4.65.3](https://github.com/plivo/plivo-php/tree/v4.65.3)(2024-09-06) **Feature - Adding more attribute on mdr object** - Added `message_sent_time`, `message_updated_time` and `error-message` on get and list Message API diff --git a/src/Plivo/Resources/Call/CallInterface.php b/src/Plivo/Resources/Call/CallInterface.php index c8c72c71..93c24aec 100644 --- a/src/Plivo/Resources/Call/CallInterface.php +++ b/src/Plivo/Resources/Call/CallInterface.php @@ -68,7 +68,13 @@ function __construct(BaseClient $plivoClient, $authId) * + [int] ring_timeout - Determines the time in seconds the call should ring. If the call is not answered within the ring_timeout value or the default value of 120s, it is canceled. * + [string] parent_call_uuid - The call_uuid of the first leg in an ongoing conference call. It is recommended to use this parameter in scenarios where a member who is already present in the conference intends to add new members by initiating outbound API calls. This minimizes the delay in adding a new memeber to the conference. * + [boolean] error_parent_not_found - if set to true and the parent_call_uuid cannot be found, the API request would return an error. If set to false, the outbound call API request will be executed even if the parent_call_uuid is not found. Defaults to false. - + * + [int] machine_detection_maximum_speech_length - Time in milliseconds used to measure the length of speech activity.. It should be an integer >= 1000 and <= 6000 and the unit is ms. The default value is 5000 ms. + * + [int] machine_detection_initial_silence - The duration of initial silence when the call is answered. It should be an integer >= 2000 and <= 10000 and the unit is ms. The default value is 4500 ms. + * + [int] machine_detection_maximum_words - The maximum number of sentences detected.. It should be an integer >= 2 and <= 10. The default value is 3. + * + [int] machine_detection_initial_greeting - Indicates the maximum length of the initial greeting in milliseconds. It should be an integer >= 1000 and <= 5000 and the unit is ms. The default value is 1500 ms. + * + [int] machine_detection_silence - The silence after the initial greeting, expressed in milliseconds. It should be an integer >= 500 and <= 5000 and the unit is ms. The default value is 800 ms. + * + [int] machine_detection_answer_time - Time within which if the call is answered then the call has been considered as answered by a machine. It should be an integer >= 100 and <= 45000 and the unit is ms. The default value is 45000 ms. + * @return JSON output * @throws PlivoValidationException,PlivoResponseException */ diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 55dcb392..cb751ddd 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -20,7 +20,7 @@ class Version /** * @const int PHP helper library minor version number */ - const MINOR = 65; + const MINOR = 66; /** * @const int PHP helper library patch number From 0fc196f24c86ad5f17176f8a6fa2025e8e0f214d Mon Sep 17 00:00:00 2001 From: abinaya-plivo Date: Wed, 11 Sep 2024 14:02:56 +0530 Subject: [PATCH 2/3] version changed --- src/Plivo/Version.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index cb751ddd..6cffb89e 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 = 65; /** * @const int PHP helper library patch number */ - const PATCH = 3; + const PATCH = 4; /** * @return string From bf503bf050ed25298d852ddf0a784164b944fac4 Mon Sep 17 00:00:00 2001 From: abinaya-plivo Date: Tue, 5 Nov 2024 22:36:51 +0530 Subject: [PATCH 3/3] version changed --- src/Plivo/Version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index 64e90e2d..0cad1587 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -20,7 +20,7 @@ class Version /** * @const int PHP helper library minor version number */ - const MINOR = 66; + const MINOR = 67; /** * @const int PHP helper library patch number