/ivr-recording-rails

Example App and Tutorial content for IVR Call Recording and Agent Call screening

Primary LanguageHTMLMIT LicenseMIT

Twilio

IVR Call Recording and Agent Conference. Level: Intermediate. Powered by Twilio - Ruby on Rails

About

IVRs (interactive voice response) are automated phone systems that can facilitate communication between callers and businesses. In this tutorial you will learn how to screen and send callers to voicemail if an agent is busy.

Read the full tutorial here!.

Local development

This project is built using Ruby on Rails and NodeJS Frameworks.

  1. First clone this repository and cd into it.

    $ git clone git://github.com/TwilioDevEd/ivr-recording-rails.git
    $ cd ivr-recording-rails
  2. Install Rails the dependencies.

    $ bundle install
    
  3. Install Webpack the dependencies.

    $ npm install
    
  4. Create database and run migrations.

    Make sure you have installed PostgreSQL. If on a Mac, I recommend Postgres.app

    $ bundle exec rails db:setup
  5. Edit db/seeds.rb and seed the database.

    $ bundle exec rails db:seed
  6. Make sure the tests succeed.

    $ bundle exec rails test
  7. Start the server.

    $ bundle exec rails s
  8. Check it out at http://localhost:3000

How to Demo

  1. Expose the application to the wider Internet using ngrok.

    $ ngrok http 3000
  2. Provision a number with voice capabilities under the Manage Numbers page on your account. Set the Voice URL for the number to http://<your-ngrok-subdomain>.ngrok.io/ivr/welcome.

  3. Grab your phone and call your newly-provisioned number!

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.