GithubHelp home page GithubHelp logo

twiliodeved / send-sms-during-inbound-calls-csharp Goto Github PK

View Code? Open in Web Editor NEW
1.0 16.0 1.0 572 KB

Learn how to send an SMS to someone who's called your Twilio phone number while they're on the call

License: MIT License

C# 56.16% CSS 5.08% HTML 37.81% ASP.NET 0.96%
twilio-voice twilio-sms

send-sms-during-inbound-calls-csharp's Introduction

Twilio

Send an SMS during a phone call. Powered by Twilio and C#/.NET Framework

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.

About

Learn how to send an SMS to someone who's called your Twilio phone number while they're on the call.

This small sample application will say a short message to an inbound caller and, at the same time, send them an SMS.

Read the full tutorial here!

Implementations in other languages:

PHP Java Python Ruby Node
Done Done Done Done Done

Set up

Requirements

Twilio Account Settings

This application should give you a ready-made starting point for writing your own application. Before we begin, we need to collect all the config values we need to run the application:

Config Value Description
Account Sid Your primary Twilio account identifier - find this in the Console.
Auth Token Used to authenticate - just like the above, you'll find this here.

Local development

After the above requirements have been met:

  1. Clone this repository and cd into it
git clone [email protected]:TwilioDevEd/send-sms-during-inbound-calls-csharp.git
cd send-sms-during-inbound-calls-csharp
  1. Set your configuration variables
copy TwilioApp/Local.config.example TwilioApp/Local.config

See Twilio Account Settings to locate the necessary environment variables.

  1. Build the solution

  2. Run the application

  3. Expose the application to the wider Internet using ngrok.

$ ngrok http 49341 -host-header="localhost:49341"

Or, use ngrok Extensions for Visual Studio. Select "Tools... Start ngrok Tunnel".

  1. Configure Twilio to call your webhooks

You will need to configure Twilio to call your application when calls are received in your Twilio Number. The voice url should look something like this:

https://<your-ngrok-subdomain>.ngrok.io/answer
  1. Make a call to your number.

That's it!

Resources

  • The CodeExchange repository can be found here.

Contributing

This template is open source and welcomes contributions. All contributions are subject to our Code of Conduct.

Visit the project on GitHub

License

MIT

Disclaimer

No warranty expressed or implied. Software is as is.

send-sms-during-inbound-calls-csharp's People

Contributors

dprothero avatar jonedavis avatar

Stargazers

Dante Haskell Elrik avatar

Watchers

 avatar Jarod Reyes avatar James Cloos avatar  avatar Sam Agnew avatar Kat King avatar Cristhian Motoche avatar Craig Dennis avatar Ricky avatar Lizzie Siegle avatar Angie Rojas avatar Stefani Castellanos avatar sstringer avatar Tom Wanzek avatar  avatar  avatar

Forkers

rexyonery

send-sms-during-inbound-calls-csharp's Issues

Code Exchange quality checklist

The purpose of this checklist is to assess the state of this repository, and bring it to an acceptable level for long-term support by completing the tasks listed below.

Please check every part of this checklist for us to process your request. You can do this by marking them with [x] instead of [ ].

Documentation

  • Twilio LICENSE exists in repository

  • Code of Conduct exists in repository

  • CONTRIBUTING exists in repository

  • No broken links in README.md

  • Build status exists at top of README.md

  • Set up steps are complete and accurate

  • CodeExchange repository is linked in README.md

GitHub

  • Dependabot set up

  • Dependabot automerge set up

  • Uses GitHub Actions (required for Twilio sample) or other CI

Code

  • Packages/dependencies are up to date

  • Code compiles against latest packages/dependencies

  • Matches CodeExchange Guidelines to the best of ability

Tests

  • Functionality tests have been created

  • All tests pass

App

  • Confirmed sample behaves as expected (after dependencies have been updated)

  • This file has been copied into a wiki entry for the respective repository or added as a GitHub issue

General

  • I've read and followed the contribution guidelines

  • I've read and implemented my template according to the respective coding guidelines for my project

  • I agree and adhere to the Code of Conduct

  • The template has been authored by me / or my organization and will be kept up-to-date. If the template will not longer be maintained, I'll notify this project.

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.