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

Learn More

How to Broadcast Voice Message [PHP and twilio]

43 Runs 1409 Views 315 Copies


sundip 66

published 4 years ago

require "twilio-php-master/Services/Twilio.php";
require "storenumbers.php";

/* File Location for use in REST URL */
$url = getenv('BASE_URL');

/* Start TwiML */
header("content-type: text/xml");
$response = new Services_Twilio_Twiml();

/* Check to make sure that the user has contacts in the database */
$From = '+156488546545';
if (getNumbers($From))
		'action' => $url . 'broadcast.php?number=' . $From
	$response->say('I did not receive a message');
	$response->say('You have not registered any contacts');
print $response;
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).