app/controllers/ivr/calls_controller.rb
# Public: prompts a user reported response on how the connection preformed
#
# CallSid - active_call's remote_id from twilio(required)
# DialCallSid - dialed call's remote_id from twilio (required)
prompts a user reported response on how the connection preformed
CallSid - active_call's remote_id from twilio(required)
DialCallSid - dialed call's remote_id from twilio (required)
prompts a user reported response on how the connection preformed CallSid - active_call ' s remote_id from twilio ( required ) DialCallSid - dialed call ' s remote_id from twilio ( required )
def connection_gather_prompt
    active_connection = active_call.last_connection
    active_connection.update!(remote_id: params['DialCallSid'], status: params['DialCallStatus'])
    response = Twilio::TwiML::Response.new do |r|
      r.Pause(length:2) 
      r.Gather(
        action: ivr_calls_connection_gather_url(connection_id: active_connection.id),
        'numDigits' => 1,
        'finishOnKey' => ''
      ) do |gather|
        play_audio(r, 'user_response')
        gather.Pause(length:5)
        play_audio(r, 'user_response')
      end
      ready_for_connection?(r)
    end
    render_twiml response
  end
def connection_gather_prompt active_connection = active_call . last_connection active_connection . update! ( remote_id : params [ 'DialCallSid' ] , status : params [ 'DialCallStatus' ] ) response = Twilio :: TwiML :: Response . new do | r | r . Pause ( length : 2 ) r . Gather ( action : ivr_calls_connection_gather_url ( connection_id : active_connection . id ) , 'numDigits' => 1 , 'finishOnKey' => '' ) do | gather | play_audio ( r , 'user_response' ) gather . Pause ( length : 5 ) play_audio ( r , 'user_response' ) end ready_for_connection? ( r ) end render_twiml response end
Public: prompts a user reported response on how the connection preformed
CallSid - active_call's remote_id from twilio(required)
DialCallSid - dialed call's remote_id from twilio (required)
Public : prompts a user reported response on how the connection preformed CallSid - active_call ' s remote_id from twilio ( required ) DialCallSid - dialed call ' s remote_id from twilio ( required )
#prevents user from accidentaly pushing * for this gather prompt