How to modify Call using AMD in Twilio
Till Now i have done this
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
);
what i want if call is answered by human than caller and client should connect esle an recorded file should play to an answering machine
my twiml bin
<Response>
{{#AnsweredBy}}
<Dial>
<Number>
{{to}}
</Number>
</Dial>
{{/AnsweredBy}}
{{^AnsweredBy}}
<Play>{{recordFile}}</Play>
{{/AnsweredBy}}
</Response>