This application demonstrates how to use Twilio and TwiML to perform automated phone surveys.
This application requires Visual Studio and SQLServer Express 2019 with LocalDB enabled.
-
Clone the repository and
cd
into it. -
Open the solution file in Visual Studio.
-
Build the solution.
-
Run
Update-Database
to execute the migrations.(Be sure to check that your database server name matches the one from the connection string on
Web.config
. For reference, default values where used upon SQLServer installation)Running the command
Update-Database
will run the migrations and run theSeed
method, if you want to inspect this you can inspect 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 the installation instructions are available here.
Once you have the application running you can expose it to the wider internet by running the following command (port 1153 is the default port for this application).
ngrok http 1153 -host-header="localhost:1153"
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.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.