zxed
zxed

Reputation: 336

twilio outbound voice call from client - not phone

The docs say that the from can be a phone number OR client https://www.twilio.com/docs/api/voice/making-calls

From: The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified outgoing caller id for your account.

however - the c# sdk doesnt seem to support the from being a Client - anyway to use a client instead of a phone number? using twilio voice SDK for ios and trying to allow the call receiver to see it as a "missed call" so they can call back.

Upvotes: 1

Views: 462

Answers (1)

Devin Rader
Devin Rader

Reputation: 10366

Twilio evangelist here.

The helper library asks for an IEndpoint as the to parameter. There are a two classes that implement IEndpoint: PhoneNumber, Client.

var to = new Client("Bob");
var from = new PhoneNumber("+15017250604");
var call = CallResource.Create(to,
                               from,
                               url: new Uri("http://demo.twilio.com/docs/voice.xml"));

Hope that helps.

Upvotes: 2

Related Questions