Skip to content

TwilioDevEd/ivr-phone-tree-servlets

Repository files navigation

Twilio

IVR Phone Tree: IVR for beginners. Powered by Twilio - Java/Servlets

Java Servlet CI

This is an application example implementing an automated phone line using Twilio and Java Servlets.

Read the full tutorial here!

Local Development

  1. First clone this repository and cd into it.

    $ git clone git@github.com:TwilioDevEd/ivr-phone-tree-servlets.git
    $ cd ivr-phone-tree-servlets
  2. Run the application.

    $ ./gradlew appRun
  3. Check it out at http://localhost:8080.

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

    $ ngrok http 8080
  5. Configure Twilio to call your webhooks

You will also need to configure Twilio to call your application when calls are received in your Twilio Number. The voice URL should look something like this:

http://<your-ngrok-subdomain>.ngrok.io/ivr/welcome

Configure Voice

  1. 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.