This application demonstrates how to use Twilio and TwiML to perform automated phone surveys.
The application requirements are minimal, if you have installed Visual Studio you're almost done.
- Clone the repository.
- Open the solution file in Visual Studio.
- Build the solution.
- Run
Update-Database
to execute the migrations.
Running the command Update-Database
will run the migrations and run the Seed
method, if you want to inspect this you can inspec SQL Server Object Explorer.
That's it!
For this demo it's necessary that your local application instance is accessible from the Internet. The easiest way to accomplish this during development is using ngrok. The installer and also the installation instructions are available here.
Once you have the application running you can expose it to the wider internet by running (port 1302 is the default port for this application)
ngrok http 1302 -host-header="localhost:1302"
In order to receive incoming calls we need to first configure our Twilio phone number.
Click on the red number, and then set the Voice Request URL. Don’t forget to save the changes.