Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>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.</p> <p><a href="http://www.twilio.com/client" rel="nofollow">http://www.twilio.com/client</a></p> <p>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:</p> <p><a href="http://www.twilio.com/docs/quickstart/csharp/client/outgoing-calls" rel="nofollow">http://www.twilio.com/docs/quickstart/csharp/client/outgoing-calls</a></p> <p>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.</p> <p><a href="http://nuget.org/packages/Twilio.Client" rel="nofollow">http://nuget.org/packages/Twilio.Client</a> </p> <p>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. </p> <p>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:</p> <p><a href="http://www.twilio.com/blog/2012/02/twilio-for-net-developers-part-5-twilio-client-mvc-and-webmatrix-helper-libraries.html" rel="nofollow">http://www.twilio.com/blog/2012/02/twilio-for-net-developers-part-5-twilio-client-mvc-and-webmatrix-helper-libraries.html</a></p> <p>Hope that helps. Let me know if you have any more questions.</p> <p>Devin</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload