@@ -164,15 +164,16 @@ def list(self,
164164 offset = None
165165 ):
166166 return self .client .request ('GET' , ('MultiPartyCall' ,), to_param_dict (self .list , locals ()),
167- response_type = ListResponseObject , objects_type = MultiPartyCall )
167+ response_type = ListResponseObject , objects_type = MultiPartyCall , is_voice_request = True )
168168
169169 @validate_args (
170170 friendly_name = [optional (of_type_exact (str ))],
171171 uuid = [optional (of_type_exact (str ))],
172172 )
173173 def get (self , uuid = None , friendly_name = None ):
174174 mpc_id = self .__make_mpc_id (friendly_name , uuid )
175- return self .client .request ('GET' , ('MultiPartyCall' , mpc_id ), response_type = MultiPartyCall )
175+ return self .client .request ('GET' , ('MultiPartyCall' , mpc_id ),
176+ is_voice_request = True , response_type = MultiPartyCall )
176177
177178 @validate_args (
178179 role = [of_type_exact (str ), is_in (('agent' , 'supervisor' , 'customer' ), case_sensitive = False , case_type = 'lower' )],
@@ -295,7 +296,8 @@ def add_participant(self,
295296 if call_uuid is None and (not from_ or not to_ ):
296297 raise ValidationError ('specify (from, to) when not adding an existing call_uuid to multi party participant' )
297298 return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Participant' ),
298- self .__clean_identifiers (to_param_dict (self .add_participant , locals ())))
299+ self .__clean_identifiers (to_param_dict (self .add_participant , locals ())),
300+ is_voice_request = True )
299301
300302 @validate_args (
301303 friendly_name = [optional (of_type_exact (str ))],
@@ -311,7 +313,7 @@ def start(self, uuid=None, friendly_name=None):
311313 )
312314 def stop (self , uuid = None , friendly_name = None ):
313315 mpc_id = self .__make_mpc_id (friendly_name , uuid )
314- return self .client .request ('DELETE' , ('MultiPartyCall' , mpc_id ))
316+ return self .client .request ('DELETE' , ('MultiPartyCall' , mpc_id ), is_voice_request = True )
315317
316318 @validate_args (
317319 friendly_name = [optional (of_type_exact (str ))],
@@ -329,31 +331,32 @@ def start_recording(self,
329331 status_callback_method = 'POST' ):
330332 mpc_id = self .__make_mpc_id (friendly_name , uuid )
331333 return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Record' ),
332- self .__clean_identifiers (to_param_dict (self .start_recording , locals ())))
334+ self .__clean_identifiers (to_param_dict (self .start_recording , locals ())),
335+ is_voice_request = True )
333336
334337 @validate_args (
335338 friendly_name = [optional (of_type_exact (str ))],
336339 uuid = [optional (of_type_exact (str ))],
337340 )
338341 def stop_recording (self , uuid = None , friendly_name = None ):
339342 mpc_id = self .__make_mpc_id (friendly_name , uuid )
340- return self .client .request ('DELETE' , ('MultiPartyCall' , mpc_id , 'Record' ))
343+ return self .client .request ('DELETE' , ('MultiPartyCall' , mpc_id , 'Record' ), is_voice_request = True )
341344
342345 @validate_args (
343346 friendly_name = [optional (of_type_exact (str ))],
344347 uuid = [optional (of_type_exact (str ))],
345348 )
346349 def pause_recording (self , uuid = None , friendly_name = None ):
347350 mpc_id = self .__make_mpc_id (friendly_name , uuid )
348- return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Record' , 'Pause' ))
351+ return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Record' , 'Pause' ), is_voice_request = True )
349352
350353 @validate_args (
351354 friendly_name = [optional (of_type_exact (str ))],
352355 uuid = [optional (of_type_exact (str ))],
353356 )
354357 def resume_recording (self , uuid = None , friendly_name = None ):
355358 mpc_id = self .__make_mpc_id (friendly_name , uuid )
356- return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Record' , 'Resume' ))
359+ return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Record' , 'Resume' ), is_voice_request = True )
357360
358361 @validate_args (
359362 friendly_name = [optional (of_type_exact (str ))],
@@ -364,7 +367,8 @@ def list_participants(self, uuid=None, friendly_name=None, call_uuid=None):
364367 mpc_id = self .__make_mpc_id (friendly_name , uuid )
365368 return self .client .request ('GET' , ('MultiPartyCall' , mpc_id , 'Participant' ),
366369 self .__clean_identifiers (to_param_dict (self .list_participants , locals ())),
367- response_type = ListResponseObject , objects_type = MultiPartyCallParticipant )
370+ response_type = ListResponseObject , objects_type = MultiPartyCallParticipant ,
371+ is_voice_request = True )
368372
369373 @validate_args (
370374 participant_id = [one_of (of_type_exact (str ), of_type_exact (int ))],
@@ -381,7 +385,8 @@ def update_participant(self, participant_id, uuid=None, friendly_name=None, coac
381385 if all (u is None for u in [coach_mode , mute , hold ]):
382386 raise ValidationError ('update at least one of coach_mode, mute or hold' )
383387 return self .client .request ('POST' , ('MultiPartyCall' , mpc_id , 'Participant' , participant_id ),
384- self .__clean_identifiers (to_param_dict (self .update_participant , locals ())))
388+ self .__clean_identifiers (to_param_dict (self .update_participant , locals ())),
389+ is_voice_request = True )
385390
386391 @validate_args (
387392 participant_id = [one_of (of_type_exact (str ), of_type_exact (int ))],
@@ -390,7 +395,8 @@ def update_participant(self, participant_id, uuid=None, friendly_name=None, coac
390395 )
391396 def kick_participant (self , participant_id , uuid = None , friendly_name = None ):
392397 mpc_id = self .__make_mpc_id (friendly_name , uuid )
393- return self .client .request ('DELETE' , ('MultiPartyCall' , mpc_id , 'Participant' , participant_id ))
398+ return self .client .request ('DELETE' , ('MultiPartyCall' , mpc_id , 'Participant' , participant_id ),
399+ is_voice_request = True )
394400
395401 @validate_args (
396402 participant_id = [one_of (of_type_exact (str ), of_type_exact (int ))],
@@ -400,4 +406,4 @@ def kick_participant(self, participant_id, uuid=None, friendly_name=None):
400406 def get_participant (self , participant_id , uuid = None , friendly_name = None ):
401407 mpc_id = self .__make_mpc_id (friendly_name , uuid )
402408 return self .client .request ('GET' , ('MultiPartyCall' , mpc_id , 'Participant' , participant_id ),
403- response_type = MultiPartyCallParticipant )
409+ response_type = MultiPartyCallParticipant , is_voice_request = True )
0 commit comments