diff --git a/CHANGELOG.md b/CHANGELOG.md index de2f82ab..1d690dd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log +## [4.47.2](https://github.com/plivo/plivo-python/tree/v4.47.2) (2024-01-25) +**Added new params 'create_mpc_with_single_participant' for Add Participant API of MPC** + ## [4.47.1](https://github.com/plivo/plivo-python/tree/v4.47.1) (2023-12-19) **Type param addition in speak api for call and mpc** diff --git a/plivo/resources/multipartycall.py b/plivo/resources/multipartycall.py index 991e1a28..42b982b2 100644 --- a/plivo/resources/multipartycall.py +++ b/plivo/resources/multipartycall.py @@ -60,7 +60,8 @@ def add_participant(self, start_recording_audio=None, start_recording_audio_method='GET', stop_recording_audio=None, - stop_recording_audio_method='GET' + stop_recording_audio_method='GET', + create_mpc_with_single_participant=True ): return self.client.multi_party_calls.add_participant(role, uuid=self.id, **to_param_dict(self.add_participant, locals())) @@ -334,6 +335,7 @@ def get(self, uuid=None, friendly_name=None, callback_url=None, callback_method= stop_recording_audio_method=[optional(of_type_exact(str), is_in(('GET', 'POST'), case_sensitive=False))], callback_url=[optional(is_url())], callback_method=[optional(of_type(six.text_type))], + create_mpc_with_single_participant=[optional(of_type_exact(bool))], ) def add_participant(self, role, @@ -387,7 +389,8 @@ def add_participant(self, stop_recording_audio=None, stop_recording_audio_method='GET', callback_url=None, - callback_method=None + callback_method=None, + create_mpc_with_single_participant=True ): mpc_id = self.__make_mpc_id(friendly_name, uuid) caller_name = caller_name or from_ diff --git a/plivo/version.py b/plivo/version.py index 6e83b2ca..de085918 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.47.1' +__version__ = '4.47.2' diff --git a/setup.py b/setup.py index a511dda7..65a61ad1 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.47.0', + version='4.47.2', description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML', long_description=long_description, url='https://github.com/plivo/plivo-python', diff --git a/tests/resources/test_multipartycalls.py b/tests/resources/test_multipartycalls.py index 218df67c..f4485104 100644 --- a/tests/resources/test_multipartycalls.py +++ b/tests/resources/test_multipartycalls.py @@ -189,6 +189,7 @@ def test_add_participant(self): 'role': 'agent', 'start_recording_audio_method': 'GET', 'stop_recording_audio_method': 'GET', + 'create_mpc_with_single_participant': True } add_participant_response = self.client.multi_party_calls.add_participant(friendly_name='Voice', role='agent', diff --git a/tests/xml/test_responseElement.py b/tests/xml/test_responseElement.py index 45f5ebe6..496d77e7 100644 --- a/tests/xml/test_responseElement.py +++ b/tests/xml/test_responseElement.py @@ -110,7 +110,7 @@ def test_add_mpc(self): 'enterSoundMethod="GET" exitSound="beep:1" exitSoundMethod="GET" hold="true" ' \ 'maxDuration="20000" maxParticipants="7" mute="true" onExitActionMethod="POST" ' \ 'onExitActionUrl="https://plivo.com/exitAction" record="true" recordFileFormat="wav" ' \ - 'recordMinMemberCount="1" recordingCallbackMethod="GET" ' \ + 'recordMinMemberCount="1" recordParticipantTrack="false" recordingCallbackMethod="GET" ' \ 'relayDTMFInputs="false" role="customer" ' \ 'startMpcOnEnter="true" '\ 'startRecordingAudio="https://plivo.com/plivoTone.mp3" ' \