Skip to content

Commit

Permalink
Merge pull request #256 from plivo/master
Browse files Browse the repository at this point in the history
rebase
  • Loading branch information
vishesh-plivo authored Jan 30, 2024
2 parents 3b66f43 + d48b36d commit a484b0e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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**

Expand Down
7 changes: 5 additions & 2 deletions plivo/resources/multipartycall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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_
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.47.1'
__version__ = '4.47.2'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions tests/resources/test_multipartycalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion tests/xml/test_responseElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" ' \
Expand Down

0 comments on commit a484b0e

Please sign in to comment.