From 1c3ecdde10540ede4e351b27a481327896668655 Mon Sep 17 00:00:00 2001 From: Ajay Kumar Verma Plivo <96424204+ajay-plivo@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:46:45 +0530 Subject: [PATCH 1/2] Vt 8411 1 (#221) * VT-8411_1:transcription_callback_url * VT-8411_1:transcription_callback_url * VT-8456:RecordParticipantTrackXML (#224) * VT-8411_1 --- transcription.go | 10 +++++----- xml/plivoxml.go | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/transcription.go b/transcription.go index b854e7d..1bcb045 100644 --- a/transcription.go +++ b/transcription.go @@ -9,13 +9,13 @@ type GetRecordingTranscriptionRequest struct { TranscriptionType string `json:"type"` } -type CallBackUrlStruct struct { - CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"` +type TranscriptionCallbackUrlStruct struct { + TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"` } type RecordingTranscriptionRequest struct { - RecordingID string `json:"recording_id"` - CallbackUrl string `json:"callback_url,omitempty" url:"callback_url,omitempty"` + RecordingID string `json:"recording_id"` + TranscriptionCallbackUrl string `json:"transcription_callback_url,omitempty" url:"transcription_callback_url,omitempty"` } type DeleteRecordingTranscriptionRequest struct { @@ -37,7 +37,7 @@ type GetRecordingTranscriptionResponse struct { } func (service *TranscriptionService) CreateRecordingTranscription(request RecordingTranscriptionRequest) (response map[string]interface{}, err error) { - param := CallBackUrlStruct{CallbackUrl: request.CallbackUrl} + param := TranscriptionCallbackUrlStruct{TranscriptionCallbackUrl: request.TranscriptionCallbackUrl} req, err := service.client.NewRequest("POST", param, "Transcription/%s", request.RecordingID) if err != nil { return diff --git a/xml/plivoxml.go b/xml/plivoxml.go index 0c68697..cd9448d 100644 --- a/xml/plivoxml.go +++ b/xml/plivoxml.go @@ -1197,6 +1197,12 @@ type MultiPartyCallElement struct { StartRecordingAudioMethod *string `xml:"StartRecordingAudioMethod,attr"` StopRecordingAudio *string `xml:"StopRecordingAudio,attr"` StopRecordingAudioMethod *string `xml:"StopRecordingAudioMethod,attr"` + RecordParticipantTrack *bool `xml:"recordParticipantTrack,attr"` +} + +func (e MultiPartyCallElement) SetRecordParticipantTrack(value bool) MultiPartyCallElement { + e.RecordParticipantTrack = &value + return e } func (e MultiPartyCallElement) SetRole(value string) MultiPartyCallElement { From a29aa10a41d0c3a18ba92c98043cc76139b99794 Mon Sep 17 00:00:00 2001 From: Ajay Kumar Verma Plivo <96424204+ajay-plivo@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:50:32 +0530 Subject: [PATCH 2/2] VT-8456:RecordParticipantTrackXML (#223) * VT-8456:RecordParticipantTrackXML * VT-8456:VersionUpdate * VT-8456 --------- Co-authored-by: Sandeep N Plivo <80757093+sandeep-plivo@users.noreply.github.com> --- CHANGELOG.md | 4 ++++ baseclient.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 362fc24..7da7ee6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [7.55.1](https://github.com/plivo/plivo-go/tree/v7.55.1) (2024-11-15) +**Feature - RecordParticipantTrack param added in MPC XML creation** +- Support for the `RecordParticipantTrack` parameter in MPC XML Creation. + ## [7.55.0](https://github.com/plivo/plivo-go/tree/v7.55.0) (2024-11-12) **Feature - CreateRecordingTranscription and DeleteRecordingTranscription feature added** - This API would help in creating transcription for recorded calls for which transcription is not available and delete API to delete. diff --git a/baseclient.go b/baseclient.go index 811b0a3..1ef7c90 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.55.0" +const sdkVersion = "7.55.1" const lookupBaseUrl = "lookup.plivo.com"