如何在 Twilio 中使用 AMD 修改呼叫
直到现在我已经做到了
var call = CallResource.Create(
machineDetection: "Enable",
url: new Uri("https://handler.twilio.com/twiml/EHef.."),
to: new Twilio.Types.PhoneNumber(to),
from: new Twilio.Types.PhoneNumber(callerId),
pathAccountSid: accountSid
);
如果呼叫由人接听而不是呼叫者和客户端应该连接esle,我想要什么记录的文件应该播放到答录机
我的垃圾桶
<Response>
{{#AnsweredBy}}
<Dial>
<Number>
{{to}}
</Number>
</Dial>
{{/AnsweredBy}}
{{^AnsweredBy}}
<Play>{{recordFile}}</Play>
{{/AnsweredBy}}
</Response>