class Adhearsion::CallController::Dial::ParallelConfirmationDial
Private Instance Methods
pre_confirmation_tasks(call)
click to toggle source
# File lib/adhearsion/call_controller/dial.rb, line 433 def pre_confirmation_tasks(call) end
pre_join_tasks(call)
click to toggle source
Calls superclass method
Adhearsion::CallController::Dial::Dial#pre_join_tasks
# File lib/adhearsion/call_controller/dial.rb, line 436 def pre_join_tasks(call) super on_all_except call do |target_call| if @apology_controller logger.info "#dial executing apology controller #{@apology_controller} on call #{target_call.id} because this call has been confirmed by another channel" target_call.async.execute_controller @apology_controller.new(target_call, @confirmation_metadata), ->(call) { call.hangup } else logger.info "#dial hanging up call #{target_call.id} because this call has been confirmed by another channel" target_call.hangup end end end
set_defaults()
click to toggle source
Calls superclass method
Adhearsion::CallController::Dial::Dial#set_defaults
# File lib/adhearsion/call_controller/dial.rb, line 428 def set_defaults super @apology_controller = @options.delete :apology end