Skip to content

plettb/ivr-phone-tree-csharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio

IVR Phone Tree: IVR for beginners. Powered by Twilio - ASP.NET MVC

An example application implementing an automated phone line using Twilio.

Read the full tutorial here!

Local development

This project is built using the ASP.NET MVC web framework.

  1. First clone this repository and cd into its directory:

    git clone git@github.com:TwilioDevEd/ivr-phone-tree-csharp.git
    cd ivr-phone-tree-csharp
    
  2. Build the solution.

  3. Expose your application to the wider internet using ngrok. This step is important because the application won't work as expected if you run it through localhost.

To start using ngrok in our project you'll have execute to the following line in the command prompt.

ngrok http 1112 -host-header="localhost:1112"

Keep in mind that our endpoint is:

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

Remember to update the Local.config file with the generated ngrok subdomain.

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

Unit Tests

To run the unit tests within Visual Studio, install the NUnit 3 Test Adapter: https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter

Meta

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