@@ -61,7 +61,9 @@ def add_participant(self,
6161 start_recording_audio_method = 'GET' ,
6262 stop_recording_audio = None ,
6363 stop_recording_audio_method = 'GET' ,
64- create_mpc_with_single_participant = True
64+ create_mpc_with_single_participant = True ,
65+ send_digits = None ,
66+ send_on_preanswer = False
6567 ):
6668 return self .client .multi_party_calls .add_participant (role , uuid = self .id ,
6769 ** to_param_dict (self .add_participant , locals ()))
@@ -88,8 +90,9 @@ def resume_recording(self):
8890 def start_participant_recording (self , participant_id , file_format = None , recording_callback_url = None ,
8991 recording_callback_method = None , record_track_type = 'all' ):
9092 return self .client .multi_party_calls .start_participant_recording (participant_id = participant_id , uuid = self .id ,
91- ** to_param_dict (self .start_participant_recording ,
92- locals ()))
93+ ** to_param_dict (
94+ self .start_participant_recording ,
95+ locals ()))
9396
9497 def stop_participant_recording (self , participant_id , record_track_type = 'all' ):
9598 return self .client .multi_party_calls .stop_participant_recording (participant_id = participant_id , uuid = self .id ,
@@ -142,8 +145,9 @@ class MultiPartyCallParticipant(SecondaryPlivoResource):
142145 def start_participant_recording (self , file_format = None , recording_callback_url = None ,
143146 recording_callback_method = None , record_track_type = 'all' ):
144147 return self .client .multi_party_calls .start_participant_recording (participant_id = self .secondary_id , uuid = self .id ,
145- ** to_param_dict (self .start_participant_recording ,
146- locals ()))
148+ ** to_param_dict (
149+ self .start_participant_recording ,
150+ locals ()))
147151
148152 def stop_participant_recording (self , record_track_type = 'all' ):
149153 return self .client .multi_party_calls .stop_participant_recording (participant_id = self .secondary_id , uuid = self .id ,
@@ -152,13 +156,16 @@ def stop_participant_recording(self, record_track_type='all'):
152156
153157 def pause_participant_recording (self , record_track_type = 'all' ):
154158 return self .client .multi_party_calls .pause_participant_recording (participant_id = self .secondary_id , uuid = self .id ,
155- ** to_param_dict (self .pause_participant_recording ,
156- locals ()))
159+ ** to_param_dict (
160+ self .pause_participant_recording ,
161+ locals ()))
157162
158163 def resume_participant_recording (self , record_track_type = 'all' ):
159- return self .client .multi_party_calls .resume_participant_recording (participant_id = self .secondary_id , uuid = self .id ,
160- ** to_param_dict (self .resume_participant_recording ,
161- locals ()))
164+ return self .client .multi_party_calls .resume_participant_recording (participant_id = self .secondary_id ,
165+ uuid = self .id ,
166+ ** to_param_dict (
167+ self .resume_participant_recording ,
168+ locals ()))
162169
163170 def update (self , coach_mode = None , hold = None , mute = None ):
164171 return self .client .multi_party_calls .update_participant (participant_id = self .secondary_id ,
@@ -336,6 +343,7 @@ def get(self, uuid=None, friendly_name=None, callback_url=None, callback_method=
336343 callback_url = [optional (is_url ())],
337344 callback_method = [optional (of_type (six .text_type ))],
338345 create_mpc_with_single_participant = [optional (of_type_exact (bool ))],
346+ send_on_preanswer = [optional (of_type_exact (bool ))],
339347 )
340348 def add_participant (self ,
341349 role ,
@@ -390,7 +398,9 @@ def add_participant(self,
390398 stop_recording_audio_method = 'GET' ,
391399 callback_url = None ,
392400 callback_method = None ,
393- create_mpc_with_single_participant = True
401+ create_mpc_with_single_participant = True ,
402+ send_digits = None ,
403+ send_on_preanswer = False
394404 ):
395405 mpc_id = self .__make_mpc_id (friendly_name , uuid )
396406 caller_name = caller_name or from_
@@ -420,7 +430,7 @@ def add_participant(self,
420430 )
421431 def start (self , uuid = None , friendly_name = None , callback_url = None , callback_method = None ):
422432 mpc_id = self .__make_mpc_id (friendly_name , uuid )
423- localObject = {}
433+ localObject = {}
424434 localObject ['status' ] = 'active' ,
425435 if callback_url :
426436 localObject ['callback_url' ] = callback_url ,
0 commit comments