From 3936697ccc7dcb5a26c841f225c6d5e8aecf117c Mon Sep 17 00:00:00 2001 From: varshit97plivo Date: Mon, 13 Jul 2020 15:10:32 +0530 Subject: [PATCH 1/4] add missing fields --- src/Plivo/Resources/Call/Call.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Plivo/Resources/Call/Call.php b/src/Plivo/Resources/Call/Call.php index 2f6c1369..eac0f974 100644 --- a/src/Plivo/Resources/Call/Call.php +++ b/src/Plivo/Resources/Call/Call.php @@ -41,12 +41,15 @@ function __construct( parent::__construct($client); $this->properties = [ + 'apiId' => $response['api_id'], 'answerTime' => $response['answer_time'], 'billDuration' => $response['bill_duration'], 'billedDuration' => $response['billed_duration'], 'callDirection' => $response['call_direction'], 'callDuration' => $response['call_duration'], + 'callState' => $response['call_state'], 'callUuid' => $response['call_uuid'], + 'conferenceUuid' => $response['conference_uuid'], 'endTime' => $response['end_time'], 'from' => $response['from_number'], 'initiationTime' => $response['initiation_time'], From 8030335ed04e653f6d71cbdc159bf968168a728d Mon Sep 17 00:00:00 2001 From: varshit97plivo Date: Tue, 21 Jul 2020 14:45:40 +0530 Subject: [PATCH 2/4] add missing fields --- src/Plivo/Resources/Call/Call.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Plivo/Resources/Call/Call.php b/src/Plivo/Resources/Call/Call.php index eac0f974..5570599e 100644 --- a/src/Plivo/Resources/Call/Call.php +++ b/src/Plivo/Resources/Call/Call.php @@ -41,7 +41,6 @@ function __construct( parent::__construct($client); $this->properties = [ - 'apiId' => $response['api_id'], 'answerTime' => $response['answer_time'], 'billDuration' => $response['bill_duration'], 'billedDuration' => $response['billed_duration'], From a0b2c9cc95a831a633dfe68527d3f968ea646a61 Mon Sep 17 00:00:00 2001 From: varshit97plivo Date: Tue, 21 Jul 2020 14:48:40 +0530 Subject: [PATCH 3/4] bump version --- CHANGELOG.md | 3 +++ src/Plivo/Version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62ab383a..90c0fec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## [v4.9.1](https://github.com/plivo/plivo-php/releases/tag/v4.9.1) - 2020-07-21 +- Fix response for create call. + ## [v4.9.0](https://github.com/plivo/plivo-php/releases/tag/v4.9.0) - 2020-05-28 - Add JWT helper functions. diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index d02326d3..6a04959f 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -25,7 +25,7 @@ class Version /** * @const int PHP helper library patch number */ - const PATCH = 0; + const PATCH = 1; /** * @return string */ From 10dc3afde393bbd8761765c9724b26e9c50aaf31 Mon Sep 17 00:00:00 2001 From: nixonsam <37671608+nixonsam@users.noreply.github.com> Date: Tue, 21 Jul 2020 16:12:06 +0530 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90c0fec5..fd0275a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log ## [v4.9.1](https://github.com/plivo/plivo-php/releases/tag/v4.9.1) - 2020-07-21 -- Fix response for create call. +- Fix Get Call Details API response. ## [v4.9.0](https://github.com/plivo/plivo-php/releases/tag/v4.9.0) - 2020-05-28 - Add JWT helper functions.