In an ideal world, the start of every conference call would be seamless. Everyone is on the line and everyone knows who is on the call. But, things don’t always work that well. The start of a conference call can leave people talking over each other in an effort to introduce themselves and leave others pretty peeved about the whole process.
Twilio’s conference calling functionality is great in that it is simple to set up, but powerful with just a few tweaks.
In this post, we’re going to set up a moderated conference system with a twist, we’re going to buld a roll call system, so that when a moderator presses the
* button, they will redirect to a page which will read back a list of participants, then
<Redirect> the moderator back into the conference.
I know, that sounds like a useful feature when you’ve got a scheduled conference call and want to make sure everyone has called in before starting.
So, today, we’re going to show you how to set up a roll call system. To do this, we need a bit of setup.
First, let’s set up the non-moderated caller TwiML when participants call in:
Let’s call this file
Callers who call into this number will be met with a message that the conference will begin when the moderator joins.
Second, we need the TwiML for moderators. So that when a moderator joins, we could append an
action on to the
<Dial> that would trigger a call to a file which would then announce the end of the conference.
Let’s call this file
Finally, we want to add the code to handle when a moderator presses the
* button on their phone.
This will call a file called
rollcall.php, which will present the moderator with a list of participants as a roll call, then forward the moderator back into the conference.
Notice, we set the
false? This is because we don’t want to end the conference at this time, we just want the moderator to hear a list of participants, then get forwarded back into the conference. In this case, the conference would end when everyone hung up their calls.
First, we would get a count of particpants still on the conference.
Second, we would cycle through each participant and
<Say> that participant’s phone number to the moderator.
<Redirect> the moderator back into the
Let’s create rollcall.php:
[This post was originally published on the Twilio blog]