From 4cd54b9d46e2e49901de9a213c4195676e731477 Mon Sep 17 00:00:00 2001 From: abinaya-plivo Date: Fri, 13 Sep 2024 09:30:10 +0530 Subject: [PATCH] dotnet sdk changes for machine detection optional params --- CHANGELOG.md | 4 +++ README.md | 4 +-- src/Plivo/Plivo.csproj | 2 +- src/Plivo/Plivo.nuspec | 2 +- src/Plivo/Resource/Call/CallInterface.cs | 44 ++++++++++++++++++++---- src/Plivo/Version.cs | 2 +- version.json | 2 +- 7 files changed, 48 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72df7985..9a721d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log +## [5.48.2](https://github.com/plivo/plivo-dotnet/tree/v5.48.2) (2024-09-12) +**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.48.1](https://github.com/plivo/plivo-dotnet/tree/v5.48.1) (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/README.md b/README.md index a7be5855..d0b2d458 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ You can install this SDK either by referencing the .dll file or using NuGet. Use the following line to install the latest SDK using the NuGet CLI. ``` -PM> Install-Package Plivo -Version 5.48.1 +PM> Install-Package Plivo -Version 5.48.2 ``` You can also use the .NET CLI to install this package as follows ``` -> dotnet add package Plivo --version 5.48.1 +> dotnet add package Plivo --version 5.48.2 ``` ## Getting started diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index 9b9fce3c..ff8d9a1c 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.48.1 + 5.48.2 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index adc59aee..3405b911 100644 --- a/src/Plivo/Plivo.nuspec +++ b/src/Plivo/Plivo.nuspec @@ -4,7 +4,7 @@ A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML Plivo - 5.48.1 + 5.48.2 Plivo Plivo SDKs Team Plivo, Inc. diff --git a/src/Plivo/Resource/Call/CallInterface.cs b/src/Plivo/Resource/Call/CallInterface.cs index f3921f6d..6328673e 100755 --- a/src/Plivo/Resource/Call/CallInterface.cs +++ b/src/Plivo/Resource/Call/CallInterface.cs @@ -26,8 +26,9 @@ public CallInterface (HttpClient client) : base (client) { /// /// Create Call with the specified from, to, answerUrl, answerMethod, ringUrl, ringMethod, hangupUrl, hangupMethod, /// fallbackUrl, fallbackMethod, callerName, sendDigits, sendOnPreanswer, timeLimit, hangupOnRing, - /// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, sipHeaders, - /// ringTimeout, parentCallUuid and errorIfrentNotFound. + /// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, machineDetectionMaximumSpeechLength, + /// machineDetectionInitialSilence, machineDetectionMaximumWords, machineDetectionInitialGreeting, machineDetectionSilence, machineDetectionAnswerTime, + /// sipHeaders,ringTimeout, parentCallUuid and errorIfrentNotFound. /// /// The create. /// From. @@ -49,6 +50,12 @@ public CallInterface (HttpClient client) : base (client) { /// Machine detection time. /// Machine detection URL. /// Machine detection method. + /// Machine detection maximum speech length. + /// machine detection initial silence. + /// Machine detection maximum words. + /// Machine detection initial greeting. + /// Machine detection silence. + /// Machine detection answer time . /// Sip headers. /// Ring timeout. /// Parent call UUID. @@ -62,7 +69,10 @@ public CallCreateResponse Create ( bool? sendOnPreanswer = null, uint? timeLimit = null, uint? hangupOnRing = null, string machineDetection = null, uint? machineDetectionTime = null, string machineDetectionUrl = null, - string machineDetectionMethod = null, string sipHeaders = null, + string machineDetectionMethod = null, uint? machineDetectionMaximumSpeechLength = null, + uint? machineDetectionInitialSilence = null, uint? machineDetectionMaximumWords = null, + uint? machineDetectionInitialGreeting = null, uint? machineDetectionSilence = null, + uint? machineDetectionAnswerTime = null, string sipHeaders = null, uint? ringTimeout = null, string parentCallUuid = null, bool? errorIfrentNotFound = null) { @@ -105,6 +115,12 @@ public CallCreateResponse Create ( machineDetectionTime, machineDetectionUrl, machineDetectionMethod, + machineDetectionMaximumSpeechLength, + machineDetectionInitialSilence, + machineDetectionMaximumWords, + machineDetectionInitialGreeting, + machineDetectionSilence, + machineDetectionAnswerTime, sipHeaders, ringTimeout, parentCallUuid, @@ -126,8 +142,9 @@ public CallCreateResponse Create ( /// /// Asynchronously create Call with the specified from, to, answerUrl, answerMethod, ringUrl, ringMethod, hangupUrl, hangupMethod, /// fallbackUrl, fallbackMethod, callerName, sendDigits, sendOnPreanswer, timeLimit, hangupOnRing, - /// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, sipHeaders, - /// ringTimeout, parentCallUuid and errorIfrentNotFound. + /// machineDetection, machineDetectionTime, machineDetectionUrl, machineDetectionMethod, machineDetectionMaximumSpeechLength, + /// machineDetectionInitialSilence, machineDetectionMaximumWords, machineDetectionInitialGreeting, machineDetectionSilence, machineDetectionAnswerTime, + /// sipHeaders, ringTimeout, parentCallUuid and errorIfrentNotFound. /// /// The create. /// From. @@ -149,6 +166,12 @@ public CallCreateResponse Create ( /// Machine detection time. /// Machine detection URL. /// Machine detection method. + /// Machine detection maximum speech length. + /// machine detection initial silence. + /// Machine detection maximum words. + /// Machine detection initial greeting. + /// Machine detection silence. + /// Machine detection answer time . /// Sip headers. /// Ring timeout. /// Parent call UUID. @@ -164,7 +187,10 @@ public async Task CreateAsync( bool? sendOnPreanswer = null, uint? timeLimit = null, uint? hangupOnRing = null, string machineDetection = null, uint? machineDetectionTime = null, string machineDetectionUrl = null, - string machineDetectionMethod = null, string sipHeaders = null, + string machineDetectionMethod = null, uint? machineDetectionMaximumSpeechLength = null, + uint? machineDetectionInitialSilence = null, uint? machineDetectionMaximumWords = null, + uint? machineDetectionInitialGreeting = null, uint? machineDetectionSilence = null, + uint? machineDetectionAnswerTime = null, string sipHeaders = null, uint? ringTimeout = null, string parentCallUuid = null, bool? errorIfrentNotFound = null, string callbackUrl = null, string callbackMethod = "POST") { @@ -195,6 +221,12 @@ public async Task CreateAsync( machineDetectionTime, machineDetectionUrl, machineDetectionMethod, + machineDetectionMaximumSpeechLength, + machineDetectionInitialSilence, + machineDetectionMaximumWords, + machineDetectionInitialGreeting, + machineDetectionSilence, + machineDetectionAnswerTime, sipHeaders, ringTimeout, parentCallUuid, diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index 61ff406c..a8d4e455 100644 --- a/src/Plivo/Version.cs +++ b/src/Plivo/Version.cs @@ -10,7 +10,7 @@ public class Version /// /// DotNet SDK version /// - public const string SdkVersion = "5.48.1"; + public const string SdkVersion = "5.48.2"; /// /// Plivo API version /// diff --git a/version.json b/version.json index 8fc43f46..444ff4ce 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.48.1", + "version": "5.48.2", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$"