0
我正在构建一个应用程序,用户将拨打我的Twilio号码。连接后,Twilio将呼叫另一个用户并连接双方。但是,为第二方显示的号码应该是Twilio的号码(或者没有来电显示),而不是用户的号码。Twilio - 呼叫转移
我累了添加SIP头如privacy = full
& p-asserted-identity="anonymous"
但没有工作。
代码我使用的回调:
[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);
}
反正有做到这一点?
谢谢! :) – Nick
顺便说一句我可以设置CallerId任何字符串或只是一个电话号码? – Nick
对于通话,您必须将其设置为电话号码。对于SMS,您可以使用自定义字符串https://www.twilio.com/help/faq/sms/can-i-specify-the-phone-number-a-recipient-sees-when-getting-an-sms-from -My-twilio-应用。请确保您将该问题标记为回答供将来参考 –