app/controllers/ivr/recordings_controller.rb
# Public: prompts a user reported response on how the connection preformed
#
# CallSid - active_call's remote_id from twilio(required)
# RecordingDuration - dialed call's remote_id from twilio (required)
# RecordingUrl - 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)
RecordingDuration - dialed call's remote_id from twilio (required)
RecordingUrl - 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 ) RecordingDuration - dialed call ' s remote_id from twilio ( required ) RecordingUrl - dialed call ' s remote_id from twilio ( required )
def re_record_prompt
    active_recording = active_call.recordings.create!(duration: params['RecordingDuration'], recording_url: params['RecordingUrl'])
    response = Twilio::TwiML::Response.new do |r|
      r.Say 'Thank you.'
      play_audio(r, 'recording_play_back')
      play_audio(r, 'recording_recrcord_instructions')
      r.Gather(
        action: ivr_recordings_new_recording_url,
        method: 'get',
        'numDigits' => 1,
        'finishOnKey' => ''
      ) do |gather|
        r.Play(active_recording.recording_url)
        play_audio(r, 'recording_play_back')
        play_audio(r, 'recording_recrcord_instructions')
      end
      play_audio(r, 'goodbye')
      r.Hangup
    end
    render_twiml response
  end
def re_record_prompt active_recording = active_call . recordings . create! ( duration : params [ 'RecordingDuration' ] , recording_url : params [ 'RecordingUrl' ] ) response = Twilio :: TwiML :: Response . new do | r | r . Say 'Thank you.' play_audio ( r , 'recording_play_back' ) play_audio ( r , 'recording_recrcord_instructions' ) r . Gather ( action : ivr_recordings_new_recording_url , method : 'get' , 'numDigits' => 1 , 'finishOnKey' => '' ) do | gather | r . Play ( active_recording . recording_url ) play_audio ( r , 'recording_play_back' ) play_audio ( r , 'recording_recrcord_instructions' ) end play_audio ( r , 'goodbye' ) r . Hangup 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)
RecordingDuration - dialed call's remote_id from twilio (required)
RecordingUrl - 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 ) RecordingDuration - dialed call ' s remote_id from twilio ( required ) RecordingUrl - dialed call ' s remote_id from twilio ( required )