This is an application example implementing an automated phone line using Twilio and Java Servlets.
-
First clone this repository and
cd
into it.$ git clone [email protected]:TwilioDevEd/ivr-phone-tree-servlets.git $ cd ivr-phone-tree-servlets
-
Run the application.
$ ./gradlew appRun
-
Check it out at http://localhost:8080.
-
Expose the application to the wider Internet using ngrok.
$ ngrok http 8080
-
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
- Grab your phone and call your newly-provisioned number!
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.