khanikar
khanikar

Reputation: 71

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

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

Upvotes: 0

Views: 202

Answers (1)

Alan
Alan

Reputation: 10771

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

Upvotes: 1

Related Questions