Reputation: 71
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
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