Book Image

Twilio Cookbook: Second Edition

By : Roger Stringer
Book Image

Twilio Cookbook: Second Edition

By: Roger Stringer

Overview of this book

Table of Contents (20 chapters)
Twilio Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Joining a conference call from the web browser


Some attendees may not want to use their phones for the conference; maybe they want to participate from their computers. This recipe will let them join the same conference via their web browser.

Getting ready

The complete source code for this recipe can be found in the Chapter4/ folder.

How to do it...

Let's build a browser phone system that will let attendees join a conference call from their web browsers. We will give users the ability to enter a code and join the room of their choice.

  1. First, since this is using the Twilio Client, you need to set up a TwiML app under your account.

  2. Click on the Create TwiML app button and enter a name for your app. Also, you'll need to enter a URL for Voice. In this case, set it to the URL where you have uploaded dial-conference.php; that is, http://MYWEBSITE.COM/join-conference.php.

  3. Now go back to the application list and you will see your new app. Look at the line directly beneath the name of your app; that is your...