From c33de49789ea2836f7f7945c96e6214d50684be1 Mon Sep 17 00:00:00 2001 From: Prashant Pandey Date: Fri, 30 Aug 2024 02:08:02 +0530 Subject: [PATCH] VT-8038: SDK changes for stream xml element keepCallAlive --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- src/Plivo/Plivo.csproj | 2 +- src/Plivo/Plivo.nuspec | 2 +- src/Plivo/Version.cs | 2 +- src/Plivo/XML/Stream.cs | 3 ++- tests_netcore/Plivo.NetCore.Test/XML/TestXML.cs | 5 +++-- version.json | 2 +- 8 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e278f9e2..b87b8b1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [5.47.4](https://github.com/plivo/plivo-dotnet/tree/v5.47.4) (2024-09-03) +**Feature - Adding new element for Audio Stream XML ** +- Added `keepCallAlive` element in Audio Stream XML + ## [5.47.3](https://github.com/plivo/plivo-dotnet/tree/v5.47.3) (2024-07-09) **Feature - Adding support for Locale param in Get and List Session** - Support for param `locale` in get and list Session API Response diff --git a/README.md b/README.md index 9546dea0..525e715a 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.47.3 +PM> Install-Package Plivo -Version 5.47.4 ``` You can also use the .NET CLI to install this package as follows ``` -> dotnet add package Plivo --version 5.47.3 +> dotnet add package Plivo --version 5.47.4 ``` ## Getting started diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index fba87357..50653e3e 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.47.3 + 5.47.4 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index 23ed6801..fd92f875 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.47.3 + 5.47.4 Plivo Plivo SDKs Team Plivo, Inc. diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index 82629b3a..c8e902a4 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.47.3"; + public const string SdkVersion = "5.47.4"; /// /// Plivo API version /// diff --git a/src/Plivo/XML/Stream.cs b/src/Plivo/XML/Stream.cs index 3dcb5627..017b71d0 100644 --- a/src/Plivo/XML/Stream.cs +++ b/src/Plivo/XML/Stream.cs @@ -18,7 +18,8 @@ public Stream(string body, dict attributes) "statusCallbackUrl", "statusCallbackMethod", "contentType", - "extraHeaders" + "extraHeaders", + "keepCallAlive" }; if (body == null) diff --git a/tests_netcore/Plivo.NetCore.Test/XML/TestXML.cs b/tests_netcore/Plivo.NetCore.Test/XML/TestXML.cs index e657a29a..8fd35fa4 100755 --- a/tests_netcore/Plivo.NetCore.Test/XML/TestXML.cs +++ b/tests_netcore/Plivo.NetCore.Test/XML/TestXML.cs @@ -197,13 +197,14 @@ public void TestAllXml() resp.AddStream("Hello, This is stream", new Dictionary() { - {"bidirectional", "true"} + {"bidirectional", "true"}, + {"keepCallAlive", "true"} }); var output = resp.ToString(); // Console.WriteLine(output); Assert.Equal( "\n My room\n \n 18217654321\n sip:john1234@phone.plivo.com\n \n \n 18217654321\n \n \n 15671234567\n \n 12345\n \n Enter PIN number.\n \n Input not recieved.\n \n Tell us more about your experience.\n \n Statement not recieved.\n \n Call will hangup after a min.\n Hi, message from Plivo.\n https://amazonaws.com/Trumpet.mp3\n \n This call will cost $2 a min.\n \n Thanks for dropping by.\n \n \n 15551234567\n \n Leave message after the beep.\n \n Recording not received.\n Your call is being transferred.\n http://foo.com/redirect/\n Go green, go plivo.\n I will wait 7 seconds starting now!\n \n I just waited 7 seconds.\n \n https://s3.amazonaws.com/abc.mp3\n \n Hello\n \n Hello, welcome to the Jungle.\n" + - " Nairobi\n Hello, This is stream\n", + " Nairobi\n Hello, This is stream\n", output.Replace(Environment.NewLine, "\n")); } } diff --git a/version.json b/version.json index 1f63570b..6f65ba3d 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.47.3", + "version": "5.47.4", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$"