1
Twilio API 사용 전화를 걸고 하나의 오디오 파일을 재생할 수 있었지만 두 파일을 재생하지 못했습니다. 내가 어떻게 해? 여기Twilio 호출 : 두 개의 오디오 파일 재생
public HttpResponseMessage Call(string callToNumber, string audioUrl)
{
// Set our Account SID and AuthToken
var accountSid = ConfigurationManager.AppSettings["ACCOUNT_SID"];
var authToken = ConfigurationManager.AppSettings["AUTH_TOKEN"];
var twilioNumber = ConfigurationManager.AppSettings["TwilioMobileNumber"];
// Instantiate a new Twilio Rest Client
var client = new TwilioRestClient(accountSid, authToken);
// Initiate a new outbound call
var call = client.InitiateOutboundCall
(
twilioNumber,
callToNumber,
audioUrl
// ,audioUrl2 -- I want to add another file
);
return Request.CreateResponse(HttpStatusCode.OK);
}
client.InitiateOutboundCall()에서는 두 개의 오디오 URL을 사용할 수 있습니까? – Eyal
아니요. 단 하나의 URL 만 메서드에 전달할 수 있지만 위에서 말한 것처럼 여러 개의 오디오 URL이있는 것처럼 URL에서 TwiML을 반환 할 수 있다고 말했기 때문입니다. 정적 인 TwiML이 필요하다면 http://twimlbin.com을 살펴 보시기 바랍니다. –