Skip to content

premverma75/clicktocall-csharp

 
 

Repository files navigation

Twilio

Click to Call with ASP.NET MVC and Twilio

Build status

Click-to-call enables your company to convert web traffic into phone calls with the click of a button. Learn how to implement it in minutes.

Read the full tutorial here!

Local development

  1. First clone this repository and cd into it.

    $ git clone https://github.com/TwilioDevEd/clicktocall-csharp.git
    $ cd clicktocall-csharp
  2. Copy the ClickToCall.Web/Local.config.example file to ClickToCall.Web/Local.config, and edit it including your credentials for the Twilio API (found at https://www.twilio.com/console/account/settings). You will also need a Twilio Number.

  3. Build the solution.

  4. If testing locally, set up and run ngrok: ngrok http 1430 host-header="localhost:1430" (or use the ngrok Visual Studio extension)

  5. Be sure to update the "PublicUrl" AppSetting in ClickToCall.Web/Local.config to match your ngrok URL (without a trailing slash).

  6. Run the application.

  7. Check it out at your ngrok address: https://xxxxxx.ngrok.io

Using ngrok

Endpoints like /Call/Connect needs to be publicly accessible. We recommend using ngrok to solve this problem.

Meta

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

Packages

No packages published

Languages

  • JavaScript 83.1%
  • C# 13.1%
  • HTML 2.6%
  • CSS 1.1%
  • Classic ASP 0.1%