Reputation: 11
I am trying to code making a call to phone number from web application using c# without MVC. using the trial url, able to make a call and listening the demo voice . Now i want to go live/ test with my voice like taking in the web application using system/laptop mic/speaker. What to pass in the URL parameter. Iam using the
var call = CallResource.Create(
record: true,
to: new Twilio.Types.PhoneNumber("xxx-xxx-xxxx"),
from: new Twilio.Types.PhoneNumber("xxx-xxx-xxxx"),
url: new Uri("https://demo.twilio.com/welcome/voice/"));
Upvotes: 1
Views: 528
Reputation: 73029
Twilio developer evangelist here.
Hi Vimaan, it's great that you've managed to get the quick start working using the demo URL.
If you want to go further with this, then I recommend diving deeper into the documentation to find out more.
I'd first start with this tutorial on how to respond to incoming calls in C#. Once you've got the idea of responding with TwiML to an incoming call, you can then use those URLs in your outbound calls too.
Make sure you read up about TwiML itself, without it you won't get very far with voice calls.
If you want to connect two calls together, so that you can speak to someone else over a Twilio call, check out this tutorial on call forwarding with Twilio.
Finally, if making a call from your laptop is the goal you'll want to read up on Twilio Client JS and there's a quickstart available for that and a full on tutorial for C# ASP.NET MVC too.
Have a look through that documentation and good luck!
Upvotes: 1