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.
-
First clone this repository and
cd
into it.$ git clone https://github.com/TwilioDevEd/clicktocall-csharp.git $ cd clicktocall-csharp
-
Copy the
ClickToCall.Web/Local.config.example
file toClickToCall.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. -
Build the solution.
-
If testing locally, set up and run ngrok:
ngrok http 1430 host-header="localhost:1430"
(or use the ngrok Visual Studio extension) -
Be sure to update the "PublicUrl" AppSetting in
ClickToCall.Web/Local.config
to match your ngrok URL (without a trailing slash). -
Run the application.
-
Check it out at your ngrok address: https://xxxxxx.ngrok.io
Endpoints like /Call/Connect
needs to be publicly accessible. We recommend using ngrok to solve this problem.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.