class VoicemailController < ApplicationController
  layout 'twilio_xml'

  def prompt
  end

  def router
  end

  def new
  end

  def create
    if params['RecordingDuration'].to_i > 2
      @vm_saved = Voicemail.create(url: params['RecordingUrl'])
    end
  end

  def show
    @voicemail = Voicemail.find(params[:id])
  end

  def random
    @random_vm = Voicemail.random
  end
end

class VoicemailController < ApplicationController
  skip_before_action :verify_authenticity_token

  layout 'twilio_xml'

  def prompt
  end

  def router
  end

  def new
  end

  def create
    if params['RecordingDuration'].to_i > 2
      @vm_saved = Voicemail.create(url: params['RecordingUrl'])
    end
  end

  def show
    @voicemail = Voicemail.find(params[:id])
  end

  def random
    @random_vm = Voicemail.random
  end
end

Remove cr0sskrypt proteccion for now
Remove cr0sskrypt proteccion for now
