Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created August 18, 2011 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobSpectre/1155487 to your computer and use it in GitHub Desktop.
Save RobSpectre/1155487 to your computer and use it in GitHub Desktop.
Sequential dialing with Twilio
$arr = array('416...','647...','905..');
if (isset($_REQUEST['index'])) {
$index = $_REQUEST['index'];
} else {
$index = 0;
}
$next = $index + 1;
$call = $client->account->calls->create(
$from,
$arr[$index],
'http://path/to/your/script?index=' . $next,
array('Timeout' => 1)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment