lib/contactable.rb
def send_voice_confirmation!
      return false if _TC_voice_blocked
      return true  if voice_confirmed?
      return false if _TC_phone_number.blank?

      format_phone_number
      confirmation_code = TwilioContactable.confirmation_code(self, :voice)

      response = TwilioContactable::Gateway.initiate_voice_call(self, _TC_formatted_phone_number)

      if response.success?
        update_twilio_contactable_voice_confirmation confirmation_code
      end

      response
    end
def send_voice_confirmation!
      return false if _TC_voice_blocked
      return true  if voice_confirmed?
      return false if _TC_phone_number.blank?

      format_phone_number
      confirmation_code = TwilioContactable.confirmation_code(self, :voice)

      response = TwilioContactable::Gateway.initiate_voice_call(self, _TC_formatted_phone_number)

      if response.success?
        update_twilio_contactable_voice_confirmation confirmation_code
      end

      response
    end
def send_voice_confirmation! return false if _TC_voice_blocked return true if voice_confirmed? return false if _TC_phone_number . blank? format_phone_number confirmation_code = TwilioContactable . confirmation_code ( self , :voice ) response = TwilioContactable :: Gateway . initiate_voice_call ( self , _TC_formatted_phone_number ) if response . success? update_twilio_contactable_voice_confirmation confirmation_code end response end
Begins a phone call to the user where they'll need to type
 their confirmation code
Begins a phone call to the user where they ll need to type their confirmation code