Speed up development with full-stack environments for every branch.

Learn More

How to start and record a conference call [PHP, twilio and recording]

46 Runs 1371 Views 262 Copies
Saved

Saved

dipesh.parmar 55

dipesh.parmar
published 4 years ago

<html>
<head>
 <title>Twilio: Start and record a conference call</title>
 <link rel="stylesheet" href="styles.css" />
</head>
<body>
<div style="margin-left:50px; width:700px;">
    <h1>Example is running. Call <? echo getenv('TWILIO_NUMBER');?></h1>
    <p>Some additional steps may need to be completed first:</p>
       
    <ol>
      <li>Login to your Twilio account 
          (<a target="_blank" href="https://twilio.com/login">twilio.com/login</a>)</li>
      <li>Click on "Numbers" and select your Twilio number</li>
      <li>Update the Voice Request URL with this example's URL: 
          <? echo getenv('BASE_URL');?>/handle-user-input.php</li> 
      <li>You should be ready to call the number and test out this example.</li>
    </ol>
    
    <h3>How it works</h3>

	<p>
		When a caller calls the number we entered,
		Twilio calls start.php,
		which then prompts them to enter a room number;
		then we check to see if the phone number they are calling from has been set as a moderator's number or not.
	</p>
	
	<p>
		If they are a moderator,
		we call moderator.php and start the conference;
		otherwise, we call speaker.php and listener.php for a moderator to join.
    </p>
    <p>
      More information can be found
      <a target="_blank" href="https://www.twilio.com/docs/howto/moderated-conference"> here</a>
    </p>
</div>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).