Rapid Response Kit: Building Conferencing and Broadcasting with Twilio. Level: Intermediate. Powered by Twilio - ASP.NET MVC
We are currently in the process of updating this sample template. If you are encountering any issues with the sample, please open an issue at github.com/twilio-labs/code-exchange/issues and we'll try to help you.
An example application implementing an disaster response kit that allows an organizer to instantly communicate with volunteers.
-
To run this application with Twilio, you will need to make it publicly accessible. We recommend using ngrok for this. Install ngrok now, or install the ngrok Extensions for Visual Studio.
-
First clone this repository and
cd
into its directory:git clone git@github.com:TwilioDevEd/conference-broadcast-csharp.git cd conference-broadcast-csharp
-
Create a new file ConferenceBroadcast.Web/Local.config and update the content with:
<appSettings> <add key="TwilioAccountSid" value="Your Twilio Account SID" /> <add key="TwilioAuthToken" value="Your Twilio Auth Token" /> <add key="TwilioPhoneNumber" value="Your Twilio Phone Number" /> <add key="RapidResponsePhoneNumber" value="Your Rapid Response Phone Number" /> </appSettings>
-
Update those values in the config file to match your Twilio account. You can get your Account SID and auth token from your dashboard. For the two phone numbers, you can use different phone numbers, or the same phone number. (The first number is for broadcasts, the second is for the conference line.) You can buy numbers right here.
-
Build the solution in Visual Studio.
-
Run the application. You'll see it start up at
http://localhost:1229
, but we aren't quite ready yet. -
Start ngrok now, to make the application publicly accessible. Either run this command:
ngrok http 1229 -host-header="localhost:1229"
Or, if you installed the ngrok Extensions for Visual Studio, choose "Start ngrok Tunnel" from the "Tools" menu in Visual Studio.
-
Open the number management page and open a number's configuration by clicking on it.
Remember that the number where you change the voice webhooks must be the same one you set on the
RapidResponsePhoneNumber
setting.For this application, you must set the voice webhook of your number to something like this:
http://<your-ngrok-subdomain>.ngrok.io/Conference/Join
And in this case set the
POST
method on the configuration for this webhook. -
Open the application in your browser using the ngrok url:
http://<your-ngrok-subdomain>.ngrok.io/
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.