Class: Twilio::Rails::Phone::Twiml::ErrorOperation

Inherits:
BaseOperation show all
Defined in:
app/operations/twilio/rails/phone/twiml/error_operation.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



10
11
12
13
14
15
16
17
# File 'app/operations/twilio/rails/phone/twiml/error_operation.rb', line 10

def execute
  twiml = Twilio::TwiML::VoiceResponse.new
  add_messages(twiml, message_set: messages, response: phone_call.responses.build) if messages
  twiml.hangup

  Twilio::Rails.config.logger.info("error_twiml: #{twiml.to_s}")
  twiml.to_s
end