How can we store recording in separate audio file when unique users joins a call ?
RecordingChannels : 'dual' is not helping me. Can someone please help ?
function MakeCall(to, completedCallback) {
// Options and headers for the HTTP request
var options = {
host: 'api.twilio.com',
port: 443,
path: '/2010-04-01/Accounts/' + process.env.TWILIO_ACCOUNT_SID + '/Calls.json',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic ' + new Buffer(process.env.TWILIO_ACCOUNT_SID + ':' + process.env.TWILIO_AUTH_TOKEN).toString('base64')
}
};
// Setup the HTTP request and our response
var req = https.request(options, function (res) {
res.setEncoding('utf-8');
// Collect response data as it comes back.
var responseString = '';
res.on('data', function (data) {
responseString += data;
});
var body = {
To: to,
From: process.env.TWILIO_FROM_NUMBER,
Url: url,
Record : true,
RecordingChannels : 'dual'
};