GithubHelp home page GithubHelp logo

malaklopez / browser-calls-csharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twiliodeved/browser-calls-csharp

0.0 2.0 0.0 2.18 MB

A sample application which shows you how to make and receive phone calls with a browser and Twilio Client

Home Page: https://www.twilio.com/docs/tutorials/walkthrough/browser-calls/csharp/mvc

C# 67.55% CSS 1.02% ASP 0.23% JavaScript 31.20%

browser-calls-csharp's Introduction

Browser Calls (ASP.NET MVC)

Build status

Learn how to use Twilio Client to make browser-to-phone and browser-to-browser calls with ease. The unsatisfied customers of the Birchwood Bicycle Polo Co. need your help.

Read the full tutorial here!

Quickstart

Create a TwiML App

This project is configured to use a TwiML App, which allows us to easily set the voice URLs for all Twilio phone numbers we purchase in this app.

Create a new TwiML app at https://www.twilio.com/user/account/apps/add and use its Sid as the TWIML_APPLICATION_SID environment variable wherever you run this app.

Creating a TwiML App

See the end of the "Local development" section for details on the exact URL to use in your TwiML app.

Once you have created your TwiML app, configure your Twilio phone number to use it (instructions here). If you don't have a Twilio phone number yet, you can purchase a new number in your Twilio Account Dashboard.

Local development

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

    git clone [email protected]:TwilioDevEd/browser-calls-csharp.git
    
    cd browser-calls-csharp
    
  2. Create a copy of BrowserCalls.Web/Web.config.sample and rename it to BrowserCalls.Web/Web.config.

  3. Open BrowserCalls.Web/Web.config and update the following keys:

    <appSettings>
      <!-- omitted for clarity -->
      <add key="TwilioAccountSid" value="TWILIO_ACCOUNT_SID" />
      <add key="TwilioAuthToken" value="TWILIO_AUTH_TOKEN" />
      <add key="TwiMLApplicationSid" value="TWIML_APPLICATION_SID" />
      <add key="TwilioPhoneNumber" value="TWILIO_PHONE_NUMBER" />
    </appSettings>
    
  4. Build the solution.

  5. Run Update-Database at Package Manager Console to execute the migrations.

  6. Run the application.

  7. Check it out at http://localhost:9932

That's it!

To actually forward incoming calls, your development server will need to be publicly accessible. We recommend using ngrok to solve this problem.

Once you have started ngrok, update your TwiML app's voice URL setting to use your ngrok hostname, so it will look something like this:

http://<your-ngrok-subdomain>.ngrok.io/Call/Connect

Meta

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

browser-calls-csharp's People

Contributors

acamino avatar atbaker avatar kwhinnery avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.