Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9140579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:32:05+00:00 2026-06-17T09:32:05+00:00

BACKGROUND First time using Twilio. Using ASP.NET MVC4 Using official twilio-csharp library: https://www.twilio.com/docs/csharp/install PROBLEM

  • 0

BACKGROUND

  • First time using Twilio.
  • Using ASP.NET MVC4
  • Using official twilio-csharp library: https://www.twilio.com/docs/csharp/install

PROBLEM

I am trying to make a very simple example for working with phone calls. I think I have the main idea, but I am struggling with what to return in the TwiML, etc.. here is my code:

public ActionResult TestCall()
        {
            var twilio = new TwilioRestClient("accountSid", "authToken");
            var call = twilio.InitiateOutboundCall("0123456789", "0123456789", "http://example.com/handleCall");
            return new EmptyResult();// Is this correct?
        }

        public ActionResult HandleCall()// Do I need arguments here?
        {
            var response = new TwilioResponse();
            // Do I need anythign in the response?
            return TwiML(response);
        }

I am not trying to provide any kind of automated service… I just want the user of my website to click Call button and he can speak with whoever he is calling… just like Skype, etc..

I just need a very basic example here. Believe me, I spent some time searching for this and there are plenty of examples, but none of them really answer this newbie question of mine in particular.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:32:06+00:00Added an answer on June 17, 2026 at 9:32 am

    It sounds like what you want to do is use Twilio to lets a user make a phone call directly from their browser to another phone. To do this you can use Twilio Client.

    http://www.twilio.com/client

    Here is a link to a quickstart showing how to use the Twilio Client javascript SDK in a webpage to create an audio connect from the browser to Twilio:

    http://www.twilio.com/docs/quickstart/csharp/client/outgoing-calls

    Notice at the top there is some C# code. This uses a class called TwilioCapability to generate a token that tells Twilio what your account credentials are and what TwiML App sid you want to use to handle the connection once its made. TwilioCapability is included in the Twilio.Client nuget package.

    http://nuget.org/packages/Twilio.Client

    The TwiML App represents a URL that you can configure from your Twilio dashboard (click DevTools -> TwiML apps). Twilio will make an HTTP request to that URL once the audio connection from the browser is opened. This lets you provide TwiML instructions to Twilio that tell it what to do with that connection. You could for example tell Twilio to Dial out to another phone number.

    If you wanted generate that TwiML dynamically using an MVC action method, you can use the Twilio.Mvc nuget package. I wrote a blog post a while ago that shows how to return TwiML from an MVC action method using the libraries installed by the nuget package:

    http://www.twilio.com/blog/2012/02/twilio-for-net-developers-part-5-twilio-client-mvc-and-webmatrix-helper-libraries.html

    Hope that helps. Let me know if you have any more questions.

    Devin

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First some background, I've written an open source .NET library, named Duplicitiy (on github.com),
First some background: I have a website using ASP.NET web forms + jQuery 1.6.4
i'm using parse.com for the first time and searching for the way to get
Been a while since I've dealt with ASP.NET and this is the first time
I'm using jQuery validation plugin. I have two images: first background of label, when
This is my first time using the UserControl in WPF. Following is my Usercontrol
First a little background: - I'm a first time poster, a student in university
I have just started using SCSS for the first time. I'm noticing that the
I am using opencv_haartraining for the first time, using OpenCV 2.3.1 on Mac OS
I have made a tooltip using jquery. But the for first time (after the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.