exotelpy.exotel.Retry

class exotelpy.exotel.Retry(number_of_retries, interval_mins, on_status, mechanism='Linear')

Utility class to pass the retry data to campaign methods

Parameters:
  • number_of_retries (int) – The number of times a call to a phone number should be attempted

  • interval_mins (int) – The time interval between retries in mins

  • on_status (List[str]) – Determines when should campaign treat a call as an unsuccessful attempt. Could be “busy”, “no-answer”, “failed”

  • mechanism (str, optional) – Can be either “Linear” or “Exponential”. If the retry should be equally spaced or exponentially. Defaults to “Linear”.

__init__(number_of_retries, interval_mins, on_status, mechanism='Linear')

Methods

__init__(number_of_retries, interval_mins, ...)

to_dict()

rtype:

dict

Attributes

mechanism

on_status