Unable to store recordings in separate channel

不问归期 提交于 2019-12-24 11:09:09

问题


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'
  };

回答1:


Twilio developer evangelist here.

So, I feel you've been leaving some bits out of your question. Your last comment suggests you are trying to record each channel of a conference.

As I said in my first comment, you can't record a channel for each member of the conference as that is not supported.

You can do single channel recording, which records an entire conversation or dual channel recording when you set it in the API request to make the first call. But dual channel recording will only record two channels if there are two legs to the call. If you are using <Record> to connect to a conference then it will only record that one leg.




回答2:


@Twilio evangelist

I would request you to work on dual channel recording and reply here only if you have working solution. In My opinion the solution doesn't work.

Your suggestions are of no help so far.



来源:https://stackoverflow.com/questions/46417096/unable-to-store-recordings-in-separate-channel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!