【发布时间】:2016-03-01 10:04:39
【问题描述】:
我正在构建一个应用程序,用户将在其中拨打我的 Twilio 号码。连接后,Twilio 将呼叫另一个用户并连接双方。但是,为第二方显示的号码应该是 Twilio 的号码(或没有来电显示),而不是用户的号码。
我厌倦了添加诸如 privacy = full 和 p-asserted-identity="anonymous" 之类的 SIP 标头,但没有一个有效。
我用于回调的代码:
[HttpPost]
public async Task<ActionResult> Connect(string from, string to)
{
//var outgoingPhoneNumber = await GatherOutgoingPhoneNumberAsync(from, to);
var response = new TwilioResponse();
response.Say("Please wait while we contact the other party");
response.Dial("+14085993263", new { });
return TwiML(response);
}
有没有办法做到这一点?
【问题讨论】: