How to record a conference call within a Twilio runtime function?

193 Views Asked by At

This Twilio runtime function creates a conference, but I am unable to figure out how to activate recording.

exports.handler = function(context, event, callback) {
    let twiml = new Twilio.twiml.VoiceResponse();
    twiml.say("You have joined my conference bridge");
    let conferenceName = "My Conference Bridge";
    twiml.dial().conference(conferenceName);
    callback(null, twiml);
};

screenshot of the runtime function

1

There are 1 best solutions below

1
On BEST ANSWER

How about this.

    exports.handler = function(context, event, callback) {
    let twiml = new Twilio.twiml.VoiceResponse();
    twiml.say("You will now be entered into your confernece");
    twiml.dial().conference({record: 'record-from-start'}, 'myconference');
    callback(null, twiml);
};