如何在Twilio运行时函数中记录电话会议?

时间:2018-09-25 11:45:51

标签: twilio twilio-functions

此Twilio运行时功能创建了一个会议,但我无法弄清楚如何激活记录。

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 个答案:

答案 0 :(得分:1)

如何?

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