简体   繁体   English

来自客户端的twilio外拨语音呼叫-不是电话

[英]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 文档说发件人可以是电话号码也可以是客户端 https://www.twilio.com/docs/api/voice/making-calls

From: The phone number or client identifier to use as the caller id. 发件人:用作呼叫者ID的电话号码或客户标识符。 If using a phone number, it must be a Twilio number or a Verified outgoing caller id for your account. 如果使用电话号码,则该号码必须是您帐户的Twilio号码或经过验证的去电显示。

however - the c# sdk doesnt seem to support the from being a Client - anyway to use a client instead of a phone number? 但是-c#sdk 似乎不支持作为客户端 -无论如何要使用客户端而不是电话号码? 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. 使用适用于ios的twilio语音SDK并尝试允许呼叫接收者将其视为“未接呼叫”,以便他们可以回叫。

Twilio evangelist here. Twilio的传播者在这里。

The helper library asks for an IEndpoint as the to parameter. 帮助程序库要求使用IEndpoint作为to参数。 There are a two classes that implement IEndpoint: PhoneNumber , Client . 有两个实现IEndpoint的类: PhoneNumberClient

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. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM