I am handling outgoing calls using Twilio Functions. I am creating a conference every outgoing call but I want to immediately call the number after creating the conference.
if(event.To) {
const dial = twiml.dial()
dial.conference('My Room', {
endConferenceOnExit: false,
startConferenceOnEnter: false
});
} else {
twiml.say('Thanks for calling!');
}
I have tried this but it's not working:
if(event.To) {
const dial = twiml.dial()
dial.conference('My Room', {
endConferenceOnExit: false,
startConferenceOnEnter: false
});
dial.number(event.To);
} else {
twiml.say('Thanks for calling!');
}