diff --git a/CHANGELOG.md b/CHANGELOG.md index 81cb6b43..80be95e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v4.27.0](https://github.com/plivo/plivo-node/tree/v4.27.0) (2022-02-02) +**Features - MPCStartCallRecording** +- Parameter change from statusCallback to recordingCallback + ## [v4.26.1](https://github.com/plivo/plivo-node/tree/v4.26.1) (2022-01-21) **Bug Fix** - Making AppId non mandatory for Buy number and update number APIs(https://github.com/plivo/plivo-node/pull/234) diff --git a/lib/resources/multiPartyCall.js b/lib/resources/multiPartyCall.js index 2c7fe6f1..56f65322 100644 --- a/lib/resources/multiPartyCall.js +++ b/lib/resources/multiPartyCall.js @@ -363,15 +363,15 @@ export class MultiPartyCall extends PlivoResource{ params.fileFormat = 'mp3' } - if(params.statusCallbackUrl){ - validUrl('statusCallbackUrl', params.statusCallbackUrl, false) + if(params.recordingCallbackUrl){ + validUrl('recordingCallbackUrl', params.recordingCallbackUrl, false) } - if(params.statusCallbackMethod){ - validParam('statusCallbackMethod', params.statusCallbackMethod.toUpperCase(), [String], false, ['GET', 'POST']) + if(params.recordingCallbackMethod){ + validParam('recordingCallbackMethod', params.recordingCallbackMethod.toUpperCase(), [String], false, ['GET', 'POST']) } else { - params.statusCallbackMethod = 'POST' + params.recordingCallbackMethod = 'POST' } params.isVoiceRequest = 'true'; return super.executeAction(this.id + '/Record/', 'POST', params) @@ -445,15 +445,15 @@ export class MultiPartyCallParticipant extends PlivoSecondaryResource{ params.fileFormat = 'mp3' } - if(params.statusCallbackUrl){ - validUrl('statusCallbackUrl', params.statusCallbackUrl, false) + if(params.recordingCallbackUrl){ + validUrl('recordingCallbackUrl', params.recordingCallbackUrl, false) } - if(params.statusCallbackMethod){ - validParam('statusCallbackMethod', params.statusCallbackMethod.toUpperCase(), [String], false, ['GET', 'POST']) + if(params.recordingCallbackMethod){ + validParam('recordingCallbackMethod', params.recordingCallbackMethod.toUpperCase(), [String], false, ['GET', 'POST']) } else { - params.statusCallbackMethod = 'POST' + params.recordingCallbackMethod = 'POST' } params.isVoiceRequest = 'true'; return super.executeAction(this.id , this.secondaryId + '/Record', 'POST', params) diff --git a/package.json b/package.json index 7853d669..55b4bbaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.26.1", + "version": "4.27.0", "description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML", "homepage": "https://github.com/plivo/plivo-node", "files": [